Ensure that your Amazon Auto Scaling Groups (ASGs) are referencing active Amazon Machine Images (AMIs) in order to maintain the auto-scaling process healthy.
This rule can help you with the following compliance standards:
- APRA
- MAS
- NIST4
For further details on compliance standards supported by Conformity, see here.
This rule resolution is part of the Conformity Security & Compliance tool for AWS.
excellence
When your Amazon Auto Scaling Groups (ASGs) fail to launch new EC2 instances due to invalid (deleted) AMIs, the scaling mechanism is unable to add more compute resources to handle the load, and this will cause a significant negative impact on your application performance.
Audit
To identify Auto Scaling Groups that are missing Amazon Machine Images (AMIs), perform the following actions:
Remediation / Resolution
To fix misconfigured Auto Scaling Groups (ASGs) that are missing AMIs, perform the following actions:
References
- AWS Documentation
- Auto Scaling Groups
- Launch Configurations
- Troubleshoot Amazon EC2 Auto Scaling
- Troubleshoot Amazon EC2 Auto Scaling: AMI issues
- Create a launch configuration
- AWS Command Line Interface (CLI) Documentation
- describe-auto-scaling-groups
- describe-launch-template-versions
- describe-images
- create-launch-template-version
- update-auto-scaling-group