Terraform Review
Use this skill when the task is to review, validate, or critique Terraform in this repository.
Repo Context
- Active Terraform lives under
infra/envs/dev. infra/envs/prodexists but is mostly placeholder material.- The current Terraform footprint is remote-state bootstrap on Azure, not full application infrastructure.
- CI expects Terraform work to run from
infra/envs/<env>.
Review Workflow
- Identify touched files under
infra/and any workflow files that invoke Terraform. - Check whether commands are scoped to the correct environment directory.
- Review backend, provider, variable, and resource consistency inside the same environment.
- Evaluate security and cost tradeoffs, especially where dev intentionally accepts weaker controls.
- Cross-check docs when the change alters behavior or posture.
- Return findings first, ordered by severity, with file references.
Focus Areas
- backend state key, storage account, container, and resource-group mismatches
- wrong
-chdiror working-directory assumptions - accidental
prodactivation or environment leakage - unsafe or undocumented changes to:
public_network_access_enabledshared_access_key_enableddefault_to_oauth_authentication- diagnostics and retention
- blob and container delete retention
- security-scan skips that are no longer justified
- docs drift between Terraform code,
README.md, andplan.md
Output Standard
- Findings first
- Highest severity first
- File references for each finding
- Call out missing validation if
fmt,validate, or security scanning was not run
Source: maxmanus96/chatops-guard — distributed by TomeVault.