creating-ec2-image-builder-pipeline

Creates an EC2 Image Builder pipeline that builds and distributes custom AMIs across regions.

Updated Jul 21, 2026
One-click install
npx skills add https://github.com/richardnroman/Synthetic-Data-Exchange-Licensing-Platform --skill creating-ec2-image-builder-pipeline-richardnroman
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: creating-ec2-image-builder-pipeline
Source: https://github.com/richardnroman/Synthetic-Data-Exchange-Licensing-Platform/tree/main/.agents/skills/creating-ec2-image-builder-pipeline
Command: npx skills add https://github.com/richardnroman/Synthetic-Data-Exchange-Licensing-Platform --skill creating-ec2-image-builder-pipeline-richardnroman

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Manually assembling an EC2 Image Builder pipeline involves many interdependent AWS resources — IAM roles, build components, image recipes, infrastructure and distribution configurations — where a single malformed ARN or missing IAM propagation wait causes cryptic failures. This Skill provides a verified, step-by-step procedure that creates the full pipeline, executes it, and prepares a launch template for the resulting AMI. ## Core Features & Use Cases - Full pipeline provisioning: Creates the IAM role and instance profile, build component, image recipe, infrastructure configuration, distribution configuration, and image pipeline in the correct order. - Cross-region AMI distribution: Configures distribution of the built AMI to a target region with proper naming templates. - Pipeline execution and launch template: Starts the image build, reports its status, and creates an EC2 launch template ready to receive the finished AMI ID. - Use Case: A platform engineer needs a hardened base AMI with AWS CLI v2 pre-installed, replicated to us-east-2, and a launch template so teams can immediately launch instances once the build finishes. ## Quick Start Ask the agent to create an EC2 Image Builder pipeline in us-east-1 that installs AWS CLI v2, distributes the AMI to us-east-2, and creates a launch template.

Frequently Asked Questions about creating-ec2-image-builder-pipeline

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create an EC2 Image Builder pipeline with the AWS CLI?▼

Create the resources in order: IAM role and instance profile, build component, image recipe, infrastructure configuration, distribution configuration, then the image pipeline itself. Use the exact ARNs returned by each create call, and start the build with start-image-pipeline-execution.

How do I distribute a custom AMI to another AWS region?▼

Create a distribution configuration containing one distribution entry per target region, each with an amiDistributionConfiguration naming template. Attach it to the image pipeline so every successful build copies the AMI to those regions automatically.

Why does create-image-pipeline fail with InvalidParameterValueException?▼

This error is almost always caused by a malformed or manually constructed ARN. Always pass the exact ARN returned by the create API calls, in the format arn:<partition>:imagebuilder:<region>:<account>:image-pipeline/<name> with no extra version or build segments.

Why does the Image Builder build instance fail to launch?▼

The instance profile usually has not propagated yet or is missing policies. Wait 10-15 seconds after creating the instance profile, and confirm EC2InstanceProfileForImageBuilder and AmazonSSMManagedInstanceCore are attached to the role.

How long does an EC2 Image Builder build take?▼

Image builds typically take 15-45 minutes and continue running in the background after execution starts. Check progress with aws imagebuilder get-image using the image build version ARN until the status reaches AVAILABLE.

Can the pipeline build container images and push them to ECR?▼

Yes, when the enable_ecr_builds option is set to true, the procedure attaches the EC2InstanceProfileForImageBuilderECRContainerBuilds managed policy to the IAM role. When false, that policy is deliberately not attached to avoid unnecessary ECR access.