Packer Rules
HashiCorp Packer for building automated machine images. Create identical images for multiple platforms from a single config.
3 rules
Image Hardening Best Practices
Intermediate
Build secure machine images with Packer — apply CIS benchmarks, remove SSH keys, clean package caches, disable unnecessary services, and validate with security scanners.
globs: **/*.pkr.hcl, **/scripts/*.sh, **/packer/**
hardening, security, cis-benchmarks, cleanup
View Rule
Provisioner Organization Patterns
Beginner
Organize Packer provisioners effectively — use shell scripts over inline commands, order provisioners logically, handle errors properly, and use file provisioners for configuration.
globs: **/*.pkr.hcl, **/scripts/*.sh, **/packer/**
provisioners, shell-scripts, file-upload, build-ordering
View Rule
Packer Template Naming and Structure
Beginner
Organize Packer templates with consistent naming — HCL format over JSON, standard file layout, meaningful source and build block names, and proper variable organization.
globs: **/*.pkr.hcl, **/*.pkrvars.hcl, **/packer/**
packer-templates, hcl, file-organization, naming-conventions
View Rule