Terraform Troubleshooting Toolkit
Review plans, validate HCL, and untangle state, provider, and drift issues before apply — with prompts and a browser-based Terraform validator.
Top Terraform errors
Start with the most common production issues and troubleshooting paths.
Duplicate resource configuration
Fix Terraform's 'Duplicate resource configuration' error caused by copy-paste, re-included files, or leftover blocks after a re…
Invalid count argument
Fix Terraform's 'Invalid count argument' error when count depends on apply-time values: use plan-time values, for_each, or a tw…
Invalid template interpolation value
Fix Terraform's 'Invalid template interpolation value' by converting lists, maps, and objects to strings with jsonencode, join…
Error locking state: ConditionalCheckFailedException
Fix Terraform 'Error locking state: ConditionalCheckFailedException' from the S3 backend DynamoDB lock table — stale locks, con…
Provider configuration not present
Fix Terraform's 'Provider configuration not present' error caused by removed or aliased providers during refactors and module d…
Reference to undeclared input variable
Fix Terraform's Reference to undeclared input variable error caused by typos, a missing variables.tf, renames, or module-scoped…
Unsupported attribute
Fix Terraform's 'Unsupported attribute' error: correct typo'd attribute names, use map index syntax, declare module outputs, an…
Unsupported block type
Fix Terraform's 'Unsupported block type' error caused by typos, block-vs-argument confusion, wrong schema, or provider version…
Best Terraform prompts
Use these prompts to turn symptoms, logs, and config into a structured troubleshooting plan.
Dangerous Terraform Changes Review
Scan a `terraform plan` output for changes that will silently destroy data, cause outages, or trigger irreversible mutations.
Terraform Module Review
Get a senior-engineer review of a Terraform module — variable hygiene, state safety, security defaults, drift resistance.
Terraform State Backend Design
Design Terraform state backend — S3+DynamoDB, GCS, Azure Blob, encryption, locking, versioning, cross-account access.
Terraform Azure Naming Convention Module
Design a Terraform naming/abbreviation module for Azure that produces compliant, length-limited, globally-unique resource names with deterministic outputs.
Free Terraform tools
Validate, troubleshoot, or analyze your configuration before production changes.
Terraform validator
Structural HCL checks: unbalanced braces, unterminated strings, duplicate resource addresses, common lints.
Open validatorAI Incident Response Assistant
Paste a cryptic Terraform error and recent changes, get next steps.
Start triageTerraform runbook
Use a repeatable checklist for production troubleshooting.
A safe path from a failing plan/apply to a clean change.
- 1 Run terraform fmt -check and terraform validate
- 2 Review the plan diff for unexpected drift or replacements
- 3 Check the backend and release any stale state lock
- 4 Confirm provider authentication and credentials
- 5 Review module inputs, versions, and dependency ordering