wshobson avatar

Terraform Module Library

Generates production-ready Terraform modules across AWS, Azure, GCP, and OCI with proper structure, validation blocks, and testing frameworks. Creates the full module directory structure including main.tf, variables.tf, outputs.tf, examples, and Terratest files. Implements input validation with regex patterns, conditional resource creation using count/for_each, and consistent tagging strategies. Most useful when you're building reusable infrastructure components for multiple teams or standardizing cloud provisioning across environments. The modules follow semantic versioning and include comprehensive documentation, making them suitable for organizational Terraform registries.

skills.sh installs
16.1K
GitHub stars
42.4K
last updated
Aug 21, 2026

Install

$ npx -y skills add wshobson/agents --skill terraform-module-library --agent claude-code

Installs into .claude/skills of the current project.

Files

Terraform Module Library

Production-ready Terraform module patterns for AWS, Azure, GCP, and OCI infrastructure.

Purpose

Create reusable, well-tested Terraform modules for common cloud infrastructure patterns across multiple cloud providers.

When to Use

  • Build reusable infrastructure components
  • Standardize cloud resource provisioning
  • Implement infrastructure as code best practices
  • Create multi-cloud compatible modules
  • Establish organizational Terraform standards

Module Structure

terraform-modules/
├── aws/
│   ├── vpc/
│   ├── eks/
│   ├── rds/
│   └── s3/
├── azure/
│   ├── vnet/
│   ├── aks/
│   └── storage/
├── gcp/
│   ├── vpc/
│   ├── gke/
│   └── cloud-sql/
└── oci/
    ├── vcn/
    ├── oke/
    └── object-storage/

Standard Module Pattern

module-name/
├── main.tf          # Main resources
├── variables.tf     # Input variables
├── outputs.tf       # Output values
├── versions.tf      # Provider versions
├── README.md        # Documentation
├── examples/        # Usage examples
│   └── complete/
│       ├── main.tf
│       └── variables.tf
└── tests/           # Terratest files
    └── module_test.go

AWS VPC Module Example

Sponsors

Details

Repository
github.com/wshobson/agents
Categories
DevOps & CI/CD, Cloud & Infrastructure

More from wshobson/agents

All 174
1wshobson avatark8s-security-policieswshobson/agentsImplement Kubernetes security policies including NetworkPolicy, PodSecurityPolicy, and RBAC for production-grade security. Use when securing Kubernetes clusters15.1Kskills.sh installs
2github avatarazure-devops-cligithub/awesome-copilotManage Azure DevOps resources via CLI including projects, repos, pipelines, builds, pull requests, work items, artifacts, and service endpoints. Use when workin14.8Kskills.sh installs
3wshobson avatarpython-observabilitywshobson/agentsPython observability patterns including structured logging, metrics, and distributed tracing. Use when adding logging, implementing metrics collection, setting 12Kskills.sh installs
4callstackincubator avatargithub-actionscallstackincubator/agent-skillsGitHub Actions workflow patterns for React Native iOS simulator and Android emulator cloud builds with downloadable artifacts. Use when setting up CI build pipe12Kskills.sh installs
5wshobson avatark8s-manifest-generatorwshobson/agentsCreate production-ready Kubernetes manifests for Deployments, Services, ConfigMaps, and Secrets following best practices and security standards. Use when genera11.6Kskills.sh installs
6wshobson avatarml-pipeline-workflowwshobson/agentsBuild end-to-end MLOps pipelines from data preparation through model training, validation, and production deployment. Use when creating ML pipelines, implementi11.5Kskills.sh installs