Ensure that the Allowed AMIs feature is utilized in Amazon EC2 in order to control the discovery and use of public AMIs or AMIs shared with your AWS account. This feature guarantees that only authorized Amazon Machine Images (AMIs) are used to launch EC2 instances, enhancing security, compliance, and control over the AMIs used within your AWS cloud environment.
This rule can help you work with the AWS Well-Architected Framework.
There are three key benefits of using the Allowed AMIs feature in your AWS account. Firstly, it enhances compliance and security by enabling users to discover and utilize only those AMIs that meet established criteria. This effectively mitigates the risk of utilizing non-approved or non-compliant Amazon Machine Images (AMIs). Secondly, the feature facilitates efficient management. By restricting the number of allowed AMIs, organizations can more easily and effectively oversee the remaining images. Lastly, it enables centralized account-level implementation. Users can configure the settings of the Allowed AMIs feature either directly within their AWS cloud account or through a declarative policy (i.e., Allowed AMIs criteria). This centralized approach ensures efficient management of AMI usage throughout the entire AWS account.
Audit
To determine if the Allowed AMIs feature is utilized to control the discovery and use of AMIs within your AWS account, perform the following operations:
Remediation / Resolution
To ensure that Amazon EC2 instances can only be launched using allowed, approved AMIs, enable and configure the Allowed AMIs feature by performing the following operations:
References
- AWS Documentation
- Amazon EC2 FAQs
- Amazon Machine Images in Amazon EC2
- Understand shared AMI usage in Amazon EC2
- Control the discovery and use of AMIs in Amazon EC2 with Allowed AMIs
- AWS Command Line Interface (CLI) Documentation
- get-allowed-images-settings
- enable-allowed-images-settings
- replace-image-criteria-in-allowed-images-settings
- describe-instance-image-metadata
- enable-allowed-images-settings