Automating Immutable Infrastructure With Packer & Terraform
summary
Demo shows Terraform Core features (pre and post conditions, move blocks, optional object attributes) driving Terraform Cloud and HCP Packer to produce immutable AMIs and enforce health. A simple web server module creates 9 resources via the private registry and an auto-apply no-code flow; running Spectral flags 17 issues, InfraCost reports ~$10.97/month, and manual AWS edits (removed tag and SSH rule) trigger drift detection and continuous validation that catches a mismatched AMI and failed post-condition.
AI-written summary · about
chapters (11)
- 0:00Introduction
- 1:07Terraform core updates
- 4:37Terraform Cloud updates
- 9:52Demo setup
- 11:16Refactoring with move block
- 14:49Demonstrating drift detection
- 18:24No code provisioning
- 25:28Applying policies
- 28:58Integrating run tasks
- 35:15Reviewing health checks
- 38:02Closing and resources
related talks
47mImmutable Infrastructure GitHub + Terraform + Packer
33mBuilding Automated Pipelines for Infrastructure Code with Terraform and Packer
25mThe Path to Modern Infrastructure Automation
50mImmutable Infrastructure as Code. True story
34mTerraform in your delivery pipeline
27mAdvanced Multipurpose Infrastructure: A Self-Managed Cloud Environment with HashiCorp Terraform
49mBuild, provision & deploy in the Cloud with Packer, Ansible & Terraform
36mInfrastructure as Code with Terraform
