Control: 2.1.3 Ensure Only Approved AMIs (Images) are Used
Description
Ensure that all base AMIs utilized are approved for use by your organization.
An approved AMI is a base EC2 machine image that is a pre-configured OS configured to run your application. Using approved AMIs helps enforce consistency and security.
Remediation
Perform the following to remove unauthorized AMIs.
From Console:
- Login to the EC2 console at https://console.aws.amazon.com/ec2/.
- In the left pane click on
Images
. - Then choose
AMIs
, - Confirm that
Owned by me
is selected. - Review the list of AMIs.
- Confirm that the AMIs listed are all approved for use.
- If an AMI is listed that is not approved select it.
- Click on
Actions
and chooseDeregister
.
After all unauthorized AMIs have been De-registered review all EC2 instances.
- Click on
Instances
. - Then choose
Instances
. - Select the
EC2 instance
for review. - In the
Details
tab review:
AMI NameAMI location
- If this information is listed as not available this instance was built with an unauthorized AMI.
- Follow organization steps to secure this instance and replace it with an instance built from an approved AMI if applicable.
- Repeat steps 3 – 6 to verify all instance have been created with approved AMIs.
Repeat the process for all other regions.
Usage
Run the control in your terminal:
powerpipe control run aws_compliance.control.cis_compute_service_v100_2_1_3
Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run aws_compliance.control.cis_compute_service_v100_2_1_3 --share
SQL
This control uses a named query:
manual_control