Provision infrastructure with Packer
Create an image with Packer, containing SSH keys, a new user, and a demo webapp, then deploy it with Terraform.
Use case
Create multi-cloud golden image pipelines with HCP Packer and HCP Terraform.
Challenge
Tracking base images, their iterations, and their build artifacts across downstream builds and provisioning pipelines can be challenging, particularly when using multiple clouds. The manual work of maintaining images across teams can be redundant and error prone, and takes time away from projects that are core to your business.
Solution
HCP Packer is a multi-cloud artifact registry that tracks images and their iterations, and makes this information available through an API. By codifying commonly used base images as golden images, they can be standardized, secured, and updated using automation.
Create an image with Packer, containing SSH keys, a new user, and a demo webapp, then deploy it with Terraform.
Adopt infrastructure as code best practices for on-premises or private cloud infrastructure.
Use the HCP Terraform run task for HCP Packer to prevent your Terraform configuration from referencing revoked image iterations.
Many teams use Packer and Terraform to build and deploy machine images, but connecting the two isn't always straightforward, especially when dealing with multi-region and multi-cloud deployments. Adding image validation and testing can complicate things further and make it hard to track what images should be used. Join HashiCorp Infrastructure Engineer Caleb Albers to discuss all that and more.