Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

HashiCorp Packer

$ packer Official Med Risk
HashiCorp · Cloud & Infra · BSL-1.1 · macos / linux / windows

HashiCorp Packer (packer) builds identical machine images (AMIs, GCP images, Azure VHDs, Docker images) from HCL2 templates, offering packer validate syntax/config checks, packer inspect, -color=false, and -machine-readable CSV logs.

FCRS-1.0 Score
81 /100
Good
Medium Confidence
Zero-Friction Install
brew install hashicorp/tap/packer
CLI vs MCP Decision CLI Preferred vs MCP

packer validates HCL2 templates and runs local/cloud image builds directly from repo definitions.

Agent-Readiness Checklist

— JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
✓ NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 18 / 25

Supports -machine-readable CSV logs, -color=false, and packer validate, though lacks modern -json output.

  • Supports -machine-readable, -color=false, and packer validate
Trust & Safety 20 / 25

packer validate and inspect are safe pre-flight checks, while build creates real cloud VMs/images.

  • Safe validate and inspect prior to packer build
Setup & Portability 14 / 15

Single static Go binary via Homebrew or official releases across macOS, Linux, and Windows.

  • Single Go binary via brew install hashicorp/tap/packer
Utility & Efficiency 12 / 15

Standardizes golden-image pipelines across AWS, GCP, Azure, and VMware.

  • Multi-cloud golden image automation
Maintenance & Lineage 8 / 10

Official hashicorp/packer repository maintained under BSL-1.1.

  • Official hashicorp/packer repository
Docs & Verifiability 9 / 10

Thorough HashiCorp Developer CLI and plugin documentation.

  • Docs at developer.hashicorp.com/packer

Security, Auth & Guardrails

Auth Modes
Env API Key Config File
Credential Storage

Inherits cloud builder credentials from environment variables or standard provider profiles (AWS_*, GOOGLE_APPLICATION_CREDENTIALS, ARM_*).

Side Effects
Read-Only Local Write Remote Write Billing Impact
Cost & Quotas

CLI is free under BSL-1.1; packer build creates temporary cloud VMs and persisted machine images.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# Packer Agent Rules
- Always run `packer fmt -check` and `packer validate` before `packer build`.
- Pass `-color=false` (or `-machine-readable`) in automated logs.
- Remember `packer build` spins up real temporary cloud VMs and snapshots—require approval first.

Agent-Ready Command Recipes

Safe Read-Only Queries

Validate a Packer HCL2 template locally
packer validate -syntax-only .

Checks HCL2 syntax without downloading plugins or contacting cloud APIs.

Inspect builders and provisioners in a template
packer inspect -machine-readable .

Outputs template variables, builders, and provisioners in comma-separated machine-readable lines.

Strengths for Agents

  • + packer validate and packer fmt -check verify templates cleanly offline/locally.
  • + Fast single Go binary with -color=false and -machine-readable flags.
  • + Supports HCL2 variables, plugins (packer init), and multi-cloud builders.

Caveats & Pitfalls

  • ! -machine-readable emits legacy CSV format rather than JSON.
  • ! packer build does not have a --dry-run mode and can take 10–30 minutes to complete.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI