Skill 3.2.1

Design and implement hardened Amazon EC2 AMIs and container images to secure compute workloads and embed security controls (for example, Systems Manager, EC2 Image Builder)

Key Concepts

EC2 Image Builder pipelines take a base image, apply components (updates, CIS or STIG hardening, agents like SSM and CloudWatch), run tests, scan with Inspector and distribute the AMI or container image to accounts and Regions on a schedule. Systems Manager Automation (for example AWS-UpdateLinuxAmi) can also patch and create AMIs.

Embed controls: minimal packages, no SSH keys or secrets, IMDSv2 required, logging agents installed, disk encryption. Restrict launches to approved images with SCPs or declarative policies (allowed AMIs), and use minimal or distroless container base images.