Files
oam/knowledge base/cloud computing/aws/image builder.md
2025-03-16 12:04:56 +01:00

4.3 KiB

Image Builder

AWS service automating the creation, management, and deployment of customized AMIs or Docker images.

  1. TL;DR
  2. Further readings
    1. Sources

TL;DR

Images created by Image Builder in one's account are owned by that account.

Leverages AWS' Task Orchestrator and Executor component management application.
For AMIs, it:

  1. Creates EC2 instances for building and validation.
  2. Creates a snapshots of the result.
  3. Terminates the EC2 instances used for building.
  4. Uses that snapshot to create new EC2 instances for testing.

For containers, it:

  1. Creates EC2 instances for building and validation.
  2. Builds container images.
  3. Runs containers from the images for testing.
  4. Terminates the EC2 instances used for building.
Glossary
Term Summary
Component YAML-based document defining the steps to take to build, validate or test images
Recipe Document defining the base image and the components to apply to it to produce the desired image
Infrastructure Configuration The EC2 infrastructure to use to build and test the desired image
Distribution Configuration How the outputted images are made available to specified AWS Regions
Pipeline Automation framework for creating and maintaining custom images
Supported operating systems

Refer Supported operating systems for the updated table.

Operating system/distribution Supported versions
Amazon Linux 2, 2023
CentOS 7, 8
CentOS Stream 8
Mac OS X 12.x (Monterey), 13.x (Ventura), 14.x (Sonoma)
Red Hat Enterprise Linux (RHEL) 7, 8, 9
SUSE Linux Enterprise Server (SLE) 12, 15
Ubuntu 18.04 LTS, 20.04 LTS, 22.04 LTS, 24.04 LTS
Windows Server 2012 R2, 2016, 2019, 2022

Image Builder costs nothing to create custom AMI or container images per se.
However, standard pricing applies for the other services that are used by or in the process, like EC2 instances, EBS volumes, and ECR storage.

Components can be specified at most once in an image recipe.

Steps:

AMI creation
  1. [optional] Create new components as needed.
  2. [optional] Create a new image recipe.
  3. [optional] Create a new infrastructure configuration.
  4. [optional] Create a new distribution configuration.
  5. Create a new pipeline.
Container image creation

TODO

Further readings

Sources