• Infrastructure
    • terraform
    • packer
  • Networking
    • consul
  • Security
    • vault
    • boundary
  • Applications
    • nomad
    • waypoint
    • vagrant
  • HashiCorp Cloud Platform

    A fully managed platform to automate infrastructure on any cloud with HashiCorp products.

    • consul
    • terraform
    • vault
    • packerbeta
    Visit cloud.hashicorp.com
  • Overview
  • Tutorials
  • Docs
  • Plugins
  • Community
GitHubInstall PackerTry HCP Packer
    • v1.8.x (latest)
    • v1.7.x
    • v1.6.x
    • v1.5.x
  • Upgrade Your Plugin to use the Packer plugin sdk
  • Upgrade Your Template to use Packer init
    • Overview
    • Variables
    • Upgrade Packer JSON Template to HCL2
    • Making a plugin HCL2 enabled
    • Overview
    • Unattended Installation for Windows
    • Unattended Installation for Debian
    • Overview
    • Build Images in CI/CD
    • Build a VirtualBox Image with Packer in TeamCity
    • Pipelineing Builds
    • Trigger Terraform Enterprise runs
    • Upload a VirtualBox Image to S3
Type '/' to Search

»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
github logoEdit this page
IntroGuidesDocsCommunityPrivacySecurityPress KitConsent Manager