AWS CLI elasticbeanstalk DescribeEnvironmentHealth is not supported in us-east-1 region

0

When attempting to execute AWS CLI command for elasticbeanstalk DescribeEnvironmentHealth in us-east-1 i get the follow error

An error occurred (InvalidRequestException) when calling the DescribeEnvironmentHealth operation: DescribeEnvironmentHealth is not supported.

here is the command used in us-east-1 region

aws elasticbeanstalk describe-environment-health --environment-name **** --attribute-names All --region us-east-1

The same command with EB instance that exist in us-west-2 works.

aws elasticbeanstalk describe-environment-health --environment-name **** --attribute-names All --region us-west-2

vtruong
已提問 2 年前檢視次數 360 次
1 個回答
0

Hello there,

The reason for the error "An error occurred (InvalidRequestException) when calling the DescribeEnvironmentHealth operation: DescribeEnvironmentHealth is not supported." is that the DescribeEnvironmentHealth call is only available for environments configured with enhanced health reporting. This also explains why the other environment in us-west-2 worked because it must have been configured with enhanced health.

For basic health reporting, you can return the environment health status by using the describe-environments CLI command.

AWS
已回答 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南