What is Packer?
A tool for creating identical machine images for multiple platforms from a single configuration file.
Packer automates the creation of machine images (AMIs for AWS, Azure images, Docker containers, Vagrant boxes) from a single JSON/HCL template. It installs software, configures the OS, and produces a ready-to-deploy image.
Benefits include consistent images across environments, faster server provisioning (no configuration at boot), and testable infrastructure. Packer fits into the immutable infrastructure pattern — build once, deploy anywhere.