What problem does it solve?
This Skill provides a comprehensive style guide for Terraform code, ensuring consistency, readability, and maintainability across projects. It helps teams establish and enforce coding standards, reducing technical debt and improving collaboration by providing clear guidelines for formatting, naming, and organization.
Core Features & Use Cases
- Code Formatting: Guidelines for indentation, alignment, and block organization, with automation via
terraform fmt.
- Naming Conventions: Best practices for naming resources, variables, and outputs using descriptive, lowercase, snake_cased names.
- File & Resource Organization: Standardized file structure and logical ordering of resources based on dependencies for improved clarity.
- AVM & AWS Specifics: Includes mandatory requirements for Azure Verified Modules and AWS resource tagging/naming conventions.
- Use Case: Onboard a new team member to Terraform development by providing a single source of truth for all coding standards, from file structure to variable declarations and cloud-specific best practices.
Quick Start
Explain the recommended file organization for a new Terraform project, including the purpose of terraform.tf, providers.tf, main.tf, variables.tf, outputs.tf, and locals.tf.