
Aws Ami Builder
This builds custom AMIs using Packer's amazon-ebs builder, which is what you want when you need reproducible EC2 images instead of clicking through the AWS console. The skill covers the full workflow from basic templates to multi-region copying, with ready-to-use source AMI filters for Ubuntu and Amazon Linux. One thing to know upfront is that each build spins up actual EC2 instances and takes 10-30 minutes, so you're paying for that compute time. The authentication setup is straightforward since it uses standard AWS credential resolution, and the troubleshooting section addresses the usual SSH timeout headaches.
- skills.sh installs
- 3.3K
- GitHub stars
- 924
- last updated
- Aug 21, 2026
Install
$ npx -y skills add hashicorp/agent-skills --skill aws-ami-builder --agent claude-codeInstalls into .claude/skills of the current project.
Files
AWS AMI Builder
Build Amazon Machine Images (AMIs) using Packer's amazon-ebs builder.
Reference: Amazon EBS Builder
Note: Building AMIs incurs AWS costs (EC2 instances, EBS storage, data transfer). Builds typically take 10-30 minutes depending on provisioning complexity.
Basic AMI Template
packer {
required_plugins {
amazon = {
source = "github.com/hashicorp/amazon"
version = "~> 1.3"
}
}
}
variable "region" {
type = string
default = "us-west-2"
}
locals {
timestamp = regex_replace(timestamp(), "[- TZ:]", "")
}
source "amazon-ebs" "ubuntu" {
region = var.region
instance_type = "t3.micro"
source_ami_filter {
filters = {
name = "ubuntu/images/*ubuntu-jammy-22.04-amd64-server-*"
root-device-type = "ebs"
virtualization-type = "hvm"
}
most_recent = true
owners = ["099720109477"] # Canonical
}
ssh_username = "ubuntu"
ami_name = "my-app-${local.timestamp}"
tags = {
Name = "my-app"
BuildDate = local.timestamp
}
}
Sponsors
Details
- Repository
- github.com/hashicorp/agent-skills
- Categories
- DevOps & CI/CD, AI & Agent Building, Cloud & Infrastructure
- First seen
- Apr 16, 2026
More from hashicorp/agent-skills
All 16- Push To Registry3.1K
- Azure Image Builder2.8K
- Windows Builder2.8K
- Terraform Style Guide13.2K
- Terraform Test9.2K
- Refactor Module6.6K
- Terraform Stacks5.8K
- Terraform Search Import5.1K
- Provider Resources4.2K
- New Terraform Provider4K
- Provider Actions4K
- Run Acceptance Tests3.8K
- Azure Verified Modules3.4K
- Provider Test Patterns3.4K
- Provider Docs3.3K