Modular Terraform, Unit Testing IaC, and CI/CD
summary
Demonstrates a concrete CI/CD pattern: a reusable pipeline template in Azure Pipelines that runs Terraform plan, apply, an approval gate, and a manual destroy step as part of a six-stage pipeline, using autogenerated three‑digit environment IDs to avoid naming collisions. Compares testing options including terraform test and Kitchen-Terraform, recommends ephemeral deploys with local emulation via localstack, calls out leftover remote state files as an open problem, and argues for self-contained, simple modules to keep tests reliable.
AI-written summary · about
