🏗️

Terraform Module Guide

Verified

by Community

Guides you in creating well-structured, reusable Terraform modules with proper input variables, outputs, documentation, and versioning. Covers module composition, remote state management, and provider configuration patterns.

terraformiacmodulesinfrastructurecloud

Terraform Module Guide

Create reusable, well-documented Terraform modules following HashiCorp best practices and community conventions.

Usage

Describe the infrastructure you want to provision and this skill will help you structure it as a reusable Terraform module.

Examples

  • "Create a Terraform module for an AWS VPC with public and private subnets"
  • "Build a module for a GCP Cloud Run service with custom domain"
  • "Design a module for Azure Kubernetes Service with node pools"

Guidelines

  • Use meaningful variable names with descriptions and validation
  • Always define outputs for resources other modules may reference
  • Include a README with usage examples
  • Pin provider versions to avoid breaking changes
  • Use data sources instead of hardcoded values where possible