Getting Started with HashiCorp Packer

Packer | DevOps | IaaC | Cloud

Arun Kumar Singh
5 min readDec 16, 2021


Photo by Petrebels on Unsplash

What is Immutable Infrastructure?

The idea behind Immutable Infrastructure takes birth from the fact that you do not change existing infrastructure in case of any update or change, but deploy completely new servers with the changes pre-installed.

What is Packer?

Packer is a HashiCorp cross-platform tool that can help to create identical machine images for multiple platforms from a single source configuration. This reduces overhead on the DevOps team who manages multi-platform deployments (ex hybrid cloud) and wants consistency across machine images. It helps cloud engineers in performing critical system updates or resolving security issues and the team can track the lifecycle of images across clouds, and automate image updates across the Packer and Terraform lifecycle.

How can we leverage the power of Packer?

Immutable Infrastructure is key to successful cloud deployments nowadays. Immutable infrastructure means servers that are never modified for any change or update, they are rebuilt. This rebuilding process produces consistency and almost zero configuration drift. Rebuilding of…