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.