What problem does it solve?
This Skill helps you create reliable Terraform tests that validate infrastructure logic before deployment, reducing manual verification and avoiding costly mistakes.
Core Features & Use Cases
- Unit-style Terraform testing: Write plan-mode
.tftest.hcl scenarios to verify naming, tags, outputs, and conditional resources.
- Integration-style Terraform testing: Use apply-mode runs to provision real Azure infrastructure and confirm end-to-end behavior.
- Mock provider support: Simulate Azure provider responses for fast CI checks and local development without real credentials.
- Troubleshooting and diagnostics: Use verbose output, cache bypass, cleanup control, and sequential run dependencies to debug failing tests.
- Use case: Validate an Azure resource group module, confirm mandatory tags, reject invalid input, and optionally run a full-stack deployment test.
Quick Start
Ask the AI to write a Terraform test file for your module that validates the expected Azure resources, tags, and input rules in plan mode.