More Info:
Ensure that the Enhanced Health Reporting feature is enabled for all Amazon Elastic Beanstalk (EB) environments provisioned in your AWS account.Risk Level
MediumAddress
Operational Maturity, ReliabilityCompliance Standards
NISTRemediation
How to enable enhanced health reporting for beanstalk environments.Using AWS Console
- Open the AWS Management Console and navigate to the Elastic Beanstalk service dashboard. (In the Cloudanix Console, navigate to “Misconfig” page and look for Affected Assets for “Ensure Enhanced Health Reporting Is Enabled For Elastic Beanstalk Environments” Policy.)
- Select the environment for which you want to enable enhanced health reporting.
- Click on the “Configuration” tab in the left-hand menu.
- Scroll down to the “Monitoring” section and click on the “Edit” button.
- Under “Health reporting”, select “Enhanced” from the drop-down menu.
- Click on the “Apply” button to save the changes.
Triage and Remediation
- Remediation
Remediation
Using Console
Using Console
To enable Enhanced Health Reporting for an Elastic Beanstalk environment using the AWS Management Console:
-
Sign in to AWS Console
Go to: https://console.aws.amazon.com/
Make sure you are in the correct Region where your Elastic Beanstalk environment is running. -
Open Elastic Beanstalk
In the services search bar, type “Elastic Beanstalk” and select it. -
Select the Application and Environment
- Click your Application name.
- Click the specific Environment where you want to enable enhanced health.
-
Go to Configuration
- In the left-hand navigation, select Configuration.
-
Edit Health / Monitoring Settings
The exact section name may differ slightly depending on console version:- Look for a card/section named Monitoring, Health, or Updates, monitoring and logging.
- Click Edit on that section.
-
Enable Enhanced Health Reporting
Within the monitoring/health section:- Find Health reporting (or similar).
- Change it from Basic to Enhanced.
- Optionally review any additional health-related options (health check grace period, etc.).
-
Apply Changes
- Click Save or Apply at the bottom of the edit panel.
- Elastic Beanstalk will update the environment; wait for the environment status to return to Ready / Green.
-
Verify Enhanced Health
- Back in the environment dashboard, confirm Health reporting: Enhanced is shown.
- You should now see more detailed health information under the Health tab for that environment.
Using CLI
Using CLI
To enable Enhanced Health Reporting for an Elastic Beanstalk environment (even if it runs EC2 instances), you change an environment option via the AWS CLI.
Note the
Look in the output for:
You can also use This will trigger an environment update. Wait until status is
You should see:
1. Prerequisites
- AWS CLI v2 installed and configured (
aws configure) - Permissions:
elasticbeanstalk:DescribeEnvironments,elasticbeanstalk:DescribeConfigurationSettings,elasticbeanstalk:UpdateEnvironment
2. Identify your Elastic Beanstalk environment
EnvironmentName or EnvironmentId you want to change.3. (Optional) Check current health reporting settings
4. Enable Enhanced Health Reporting
Useupdate-environment to set SystemType to enhanced:--environment-id instead of --environment-name:Ready again:5. Verify Enhanced Health is enabled
Using Python
Using Python
To enable Enhanced Health Reporting for an Elastic Beanstalk environment using Python (boto3), you:
This turns on Enhanced Health Reporting, which will then surface detailed health info for the EC2 instances in that environment in the EB console and via APIs.
You should see:
- Identify the application and environment.
- Call
update_environmentwith the correct option setting.
1. Prerequisites
- AWS credentials configured (via
~/.aws/credentials, environment vars, or IAM role). boto3installed:
- You know:
application_name(Elastic Beanstalk application)environment_name(Elastic Beanstalk environment)
2. Python Code to Enable Enhanced Health
3. What This Does
- Calls
update_environmenton your Elastic Beanstalk environment. - Sets:
4. Optional: Confirm the Setting
After the update finishes:Using Terraform
Using Terraform
terraform plan should show an in-place update of aws_elastic_beanstalk_environment.example with setting adding/changing EnhancedHealthReporting to enhanced.
