Skill 3.1.1

Create and manage AMIs and container images (for example, EC2 Image Builder)

Key Concepts

An AMI consists of EBS snapshots (or an instance store template) plus launch metadata. You create one from an instance (CreateImage, which reboots the instance unless you choose no reboot), copy it to other Regions (optionally encrypting it), share it with accounts, OUs or the organisation, and retire it with deprecation, disabling and deregistration. Sharing an AMI encrypted with a customer managed key also requires sharing the key. Recycle Bin and deregistration protection guard against accidental loss.

EC2 Image Builder automates image creation. A recipe names a parent image and build and test components; an infrastructure configuration sets the instance type, subnet, role and logging; a distribution configuration copies the output AMI to Regions and accounts or pushes a container image to ECR; a pipeline runs on a schedule or when the parent image changes. Image Builder lifecycle policies deprecate and delete old images, and Inspector scans can be part of the pipeline.