Skip to main content
skill CX Codex

aws-ami-builder — Claude Code skill: build AMIs with Packer

A skill that walks your agent through building Amazon Machine Images with Packer and the amazon-ebs builder — template, source AMI filters, build commands.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add hashicorp/agent-skills --skill aws-ami-builder -a claude-code
Open on GitHub

What aws-ami-builder does

The skill hands your agent a working HCL skeleton for Packer with an amazon-ebs source: region, instance type, a source AMI filter, and an image name carrying a timestamp. It ships filter snippets for Ubuntu 22.04 LTS and Amazon Linux 2023, an example that copies the image into extra regions with ami_regions, and notes on the usual failures — SSH timeout, a name that already exists, a volume that is too small.

You need AWS credentials in place: AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY, a ~/.aws/credentials file, or an IAM instance profile. The flow is packer init ., then packer validate ., then packer build ., with variables passed through -var. Builds cost money — EC2, EBS storage, data transfer — and run 10 to 30 minutes depending on provisioning, so validating the template first is worth the minute it takes.

The skill installs into Claude, Codex, Cursor, GitHub Copilot, Gemini CLI and OpenCode, landing at a path like ~/.claude/skills/aws-ami-builder/SKILL.md. License is MPL-2.0, maintained by HashiCorp.

What it helps with

  • build a custom AMI from a Packer template
  • pick the right source AMI filter for Ubuntu or Amazon Linux
  • ship one image to several regions
  • debug a build that dies on SSH or a duplicate AMI name
  • validate a template before paying for a failed build

Example prompts for the agent

  • build an AMI from my Packer template using the amazon-ebs builder
  • add multi-region copying to us-east-1 and eu-west-1
  • my build times out on SSH — what should I check in the template?

How to install aws-ami-builder

1Skills CLI (Vercel)

npx skills add hashicorp/agent-skills --skill aws-ami-builder -a claude-code

2Manually: put the files in place

~/.claude/skills/aws-ami-builder/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/aws-ami-builder/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about aws-ami-builder

How do I install aws-ami-builder in Claude?

Run npx skills add hashicorp/agent-skills --skill aws-ami-builder -a claude-code. The skill file then sits at ~/.claude/skills/aws-ami-builder/SKILL.md.

What does aws-ami-builder do?

It helps your agent write and fix Packer templates that build Amazon Machine Images with the amazon-ebs builder, covering source AMI filters and the build commands.

What do I need before using it?

AWS access: AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY, a ~/.aws/credentials file, or an IAM instance profile. The AMI build itself is billed and typically takes 10 to 30 minutes.

Similar skills

Everything for DevOps and infrastructure →

From the same set16

new-terraform-provider A skill that walks the agent through bootstrapping a Terraform provider on the Plugin Framework, from directory layout to a passing build. CX Codex +1 3,900installs run-acceptance-tests Runs and investigates Terraform provider acceptance tests with the TestAcc prefix. Use it for missing environment variables, failed runs, or tests that pass when they should not. CX Codex +1 3,700installs provider-test-patterns A skill that guides acceptance testing for Terraform providers using terraform-plugin-testing and the Plugin Framework. CX Codex +1 3,300installs azure-verified-modules A skill that carries the Azure Verified Modules requirements, so your agent can write and review Terraform modules that pass AVM certification. CX Codex +1 3,300installs provider-docs Guides Terraform provider documentation workflows for the Terraform Registry. It coordinates schema descriptions, docs templates, and tfplugindocs generation. CX Codex +1 3,200installs push-to-registry Teaches AI assistants how to register Packer build details in HCP. Useful for tracking machine image lifecycles and linking artifacts directly to Terraform. CX Codex +1 3,000installs windows-builder A skill for building Windows images with Packer over WinRM and PowerShell provisioners. Useful for Windows AMIs, Azure images and VMware templates. CX Codex +1 2,700installs terraform-policy Creates and tests Terraform Policy files, and converts Sentinel rules into Terraform Policy. Use it when policy files or their test cases need changes. CX Codex +1 1,500installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor