terraform-style-guide

Community

Standardize Terraform code, boost quality and collaboration.

AuthorCloudbrokerAz
Version1.0.0
Installs0

System Documentation

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.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: terraform-style-guide
Download link: https://github.com/CloudbrokerAz/ai-iac-consumer/archive/main.zip#terraform-style-guide

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository