What problem does it solve? Writing and maintaining Terraform configurations involves many pitfalls: unsafe state handling, over-privileged IAM policies, outdated language features, and weak testing. This Skill provides expert guidance on Terraform, OpenTofu, and related IaC tools so configurations are secure, testable, and follow current best practices. ## Core Features & Use Cases - Modern HCL Guidance: Covers ephemeral resources, write-only arguments, import/moved blocks, check blocks, terraform query, actions, typed outputs, and dynamic module sources across Terraform 1.1 through 1.15. - Layered Testing Strategy: Directs use of terraform validate, tflint, Checkov, terraform test with mock providers, and Terratest for integration testing of critical modules. - AWS & Security Patterns: Enforces least-privilege IAM verified against the AWS Service Authorization Reference, default_tags tagging, OIDC workload identity for CI/CD, state locking, and drift detection. - Use Case: When refactoring a module, the Skill recommends moved blocks instead of state surgery, pins providers with pessimistic constraints, and ensures .terraform.lock.hcl is committed. ## Quick Start Ask the assistant to review your Terraform module for security issues and modernize it using current HCL features.