Building Automated Pipelines for Infrastructure Code with Terraform and Packer
summary
Uses Terraform and Packer to build immutable images and provision resources, adds automated CI pipelines that build Packer images, run Terratest-style checks by spinning up and tearing down real infrastructure, SSH-ing to verify docker and kubelet, then run terraform plan/apply. Replaces one monolithic repo with separate function-scoped repos and remote state to control dependencies. Adds a promotion pipeline plus a nightly drift detection job that plans and optionally auto-applies fixes. Example problem: a manual apply unexpectedly wanted 20 adds 7 changes and several destroys, fixed by these pipelines.
AI-written summary · about
chapters (8)
- 0:00Introduction to IaC
- 1:31Tooling and workflow
- 6:12Common IaC obstacles
- 14:29Improving infrastructure design
- 17:17Modularization and separation
- 21:07Building IaC pipelines
- 27:34Automated deployment and drift
- 30:15Conclusion
related talks
34mTerraform in your delivery pipeline
39mAutomating Immutable Infrastructure With Packer & Terraform
47mImmutable Infrastructure GitHub + Terraform + Packer
38mJourney towards CI/CD
46mImplementing Infrastructure as Code
29mDeploying CI/CD Infrastructure with Terraform and Packer
43mEvolutionary Infrastructure Using Pipelines
06mIgnite - Blue Green Deployments Using Terraform + Packer + Jenkins
