aws-ami-builder

Build custom Amazon Machine Images for EC2 using Packer and amazon-ebs.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/benonions/dotfiles --skill aws-ami-builder-benonions
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: aws-ami-builder
Source: https://github.com/benonions/dotfiles/tree/main/codex/.codex/skills/community/hashicorp-agent-skills/packer/builders/skills/aws-ami-builder
Command: npx skills add https://github.com/benonions/dotfiles --skill aws-ami-builder-benonions

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill automates the creation of custom Amazon Machine Images (AMIs) for Amazon EC2 instances, streamlining the deployment of consistent and pre-configured environments.

Core Features & Use Cases

  • Automated AMI Creation: Uses Packer with the amazon-ebs builder to define and build AMIs.
  • Customizable Builds: Supports specifying source AMIs, instance types, regions, and provisioning steps.
  • Use Case: You need to deploy a fleet of web servers with specific software pre-installed. Use this Skill to build a custom AMI that includes your application stack, reducing instance launch and configuration time.

Quick Start

Use the aws-ami-builder skill to build a new AMI using the provided HCL template.

Frequently Asked Questions about aws-ami-builder

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

FAQPage Schema
How do I build a custom AMI for EC2 using Packer?

You can build a custom AMI for EC2 by using HashiCorp Packer with the amazon-ebs builder to define source images, instance configurations, and shell provisioning steps for custom software installation.

Can I deploy a custom AMI to multiple AWS regions at once?

Yes, multi-region deployment is supported when building custom AMIs, allowing you to distribute your pre-configured EC2 images across multiple AWS regions for consistent environments.

What is the best way to pre-install software on EC2 instances before launch?

The best way to pre-install software on EC2 instances is to build a custom AMI using Packer with shell provisioning, which bakes your application stack into the image for faster instance launches.

Do I need to specify a source AMI when creating a custom EC2 image?

Yes, specifying a source AMI is required when creating a custom EC2 image, as it serves as the base configuration that Packer uses to build and provision your customized AMI.

Does this AMI builder support custom instance configurations for the build process?

Yes, the AMI builder supports specifying custom instance configurations, including instance types and regions, to define the exact environment used during the Packer build process.

Why use Packer to create AMIs instead of manually configuring EC2 instances?

Using Packer to create AMIs automates image building and ensures deployment of consistent, pre-configured environments, reducing instance launch and configuration time compared to manual setup.