Back to Packer

Build Immutable Infrastructure with Packer in CI/CD

website/content/guides/packer-on-cicd/index.mdx

1.15.31.3 KB
Original Source

⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️

[!IMPORTANT]
Documentation Update: Product documentation previously located in /website has moved to the hashicorp/web-unified-docs repository, where all product documentation is now centralized. Please make contributions directly to web-unified-docs, since changes to /website in this repository will not appear on developer.hashicorp.com. ⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️

Build Immutable Infrastructure with Packer in CI/CD

This guide focuses on the following workflow for building immutable infrastructure. This workflow can be manual or automated and it can be implemented with a variety of technologies. The goal of this guide is to show how this workflow can be fully automated using Packer for building images from a continuous integration/continuous deployment (CI/CD) pipeline.

  1. Build Images using Packer in CI/CD
  2. Upload the new image to S3 for future deployment or use during development
  3. Create new Terraform Enterprise runs to provision new instances with the images