TDD for Infrastructure Code
summary
Shows a concrete pipeline: run Terraform validate for syntax, enforce rules with Terraform compliance, then run Terratest (Go) to deploy a Terraform module into an ephemeral autoscaling group, hit its HTTP endpoint, fail, add missing egress, rerun and pass. Describes tradeoffs: quick linting versus slow flaky end-to-end, recommends a persistent staging environment and modular Terraform modules, and claims Jenkins + Terratest in CI boots confidence to deploy infrastructure changes safely.
AI-written summary · about
chapters (11)
- 0:00Introduction
- 2:15What is Infrastructure Code
- 3:20Terraform
- 4:10Example
- 4:45Testing Pyramid
- 5:17Terraform Validation
- 6:45Terraform Compliance
- 7:45Terraform Plan
- 9:15Unit Testing
- 10:25Terraforming
- 14:00Endtoend testing
related talks
52mTest Driven Delivery of Infrastructure-As-Code
36mBuild infrastructure as a code (IaC) using test-later...
37mInfraCoding with Terraform: Writing Tests for Infrastructure-as-Code
47mInfrastructure Testing explained
35mTesting in Infrastructure as Code
32mWe Still Need to Talk About Infrastructure Testing
29mTesting Your HCL Modules for Terraform
29mTest-driven infrastructure development
