What problem does it solve?
Terraform configurations often diverge in structure, naming, and formatting across projects, making maintenance and reviews costly. This Skill provides a centralized style guide to ensure consistent Terraform code.
Core Features & Use Cases
- Code Structure: Standardizes file organization (providers.tf, main.tf, variables.tf, outputs.tf, locals.tf).
- Naming & Typing: Enforces descriptive names with underscores and explicit variable types with validations.
- Validation & Security: Promotes terraform fmt, terraform validate, and explicit version pinning for stable deployments.
- Use Case: A multi-team project can align module authors to a single structure, enabling smoother reviews and deployments.
Quick Start
Create a new Terraform project that follows the guide: set up a providers.tf with required_providers, create main.tf with a simple resource, and define variables.tf and outputs.tf with types and descriptions; then run terraform fmt -recursive and terraform validate.