More Info:

Ensure that tracing with AWS X-Ray is enabled for all the instances running within your Amazon Elastic Beanstalk environment in order to help identify issues and opportunities for performance optimization. To relay trace data from your web application to AWS X-Ray, you can run the X-Ray daemon on your Elastic Beanstalk environment’s instances.

Risk Level

Medium

Address

Operational Maturity, Reliability, Security

Compliance Standards

CBP

Triage and Remediation

Remediation

To remediate the misconfiguration “Ensure X-Ray Tracing Is Enabled For Elastic Beanstalk Environments” in AWS using AWS console, please follow the below steps:

  1. Open the AWS Management Console and navigate to Elastic Beanstalk.
  2. Select the environment for which you want to enable X-Ray tracing.
  3. Click on the Configuration tab in the left-hand menu.
  4. Click on the Modify button in the Software section of the page.
  5. Scroll down to the Debugging and monitoring section and expand it.
  6. Select Enable X-Ray tracing.
  7. Click on the Apply button to save the changes.
  8. Wait for the environment to update and restart.

Once the environment is updated and restarted, X-Ray tracing will be enabled for the Elastic Beanstalk environment.

Additional Reading: