Control: 6.3 Ensure access logs are enabled
Description
When you enable load balancing, your AWS Elastic Beanstalk environment is equipped with an Elastic Load Balancing load balancer to distribute traffic among the instances in your environment
For security reasons it is important to have a record of all the access logs and this is enabled within the Load Balancer assigned to the Elastic Beanstalk environments.
Remediation
From the Console:
- Login to AWS Console using https://console.aws.amazon.com/ec2.
- On the left hand scroll down to Load Balancing and click on
Load Balancers
. - Click on the Load balancer associated with the Elastic Beanstalk Environment.
- Under the
Description
tab scroll down to theAttributes
section. - Under Access logs - Disabled click on Configure access logs.
- Click the check box next to
Enable access logs
. - enter the se bucket name you have setup for the Elastic Beanstalk access logs.
Note - if you don't have a s3 bucket already created enter an organization name in accordance with policy and have it identify with Elastic Beanstalk. Then click the check box next to
Create this location for me
. - Click
Save
. - Scroll down under the description tab and confirm that the Access logs are set as described above.
- Repeat steps 3-11 for each Load balancer created and used with Elastic Beanstalk environment within the current region.
- Then repeat the remediation process for all other regions identified in the Audit.
Usage
Run the control in your terminal:
powerpipe control run aws_compliance.control.cis_compute_service_v100_6_3
Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run aws_compliance.control.cis_compute_service_v100_6_3 --share
SQL
This control uses a named query:
manual_control