AWS Image Builder automates the process of creating and distributing Amazon Machine Images.It can be used to share an AMI with another AWS account without copying it.This post shows how to set up an Image Builder pipeline to create a custom Windows Server 2022 AMI.The pipeline installs Terraform, the AWS PowerShell Module, and other tools.We can configure launch permissions to share the AMI with other AWS accounts without copying it.This reduces storage costs and simplifies management across different accounts.We start by setting up a custom Virtual Private Cloud (VPC) to provide the networking environment for our resources.The VPC includes a public subnet, an Internet Gateway for internet access, and a route table to direct traffic.An IAM role with appropriate permissions is created and associated with an EC2 instance profile for interaction with other AWS services.AWS Image Builder allows us to define custom components that are executed during the AMI creation process.