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
asked 2 years ago354 views
1 Answer
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
answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions