terraform-module-library

Build reusable Terraform modules for AWS, Azure, GCP, and OCI infrastructure following infrastructure-as-code best practices. Use when creating infrastructure modules, standardizing cloud provisioning, or implementing reusable IaC components.

By wshobson · 14,220 installs

npx skills add wshobson/agents --skill terraform-module-library

Source repository · Upstream listing

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 Standard Module Pattern AWS VPC Module Example main.tf: variables.tf: outputs.tf: Best Practices 1. Use semantic versioning for modules 2. Document all variables with descriptions 3. Provide examples in examples/ directory 4. Use validation blocks for input validation 5. Output important attributes for module composition 6. Pin provider versions in versions.tf 7. Use locals for computed values 8. Implement conditional resources with count/for each 9. Test modules with Terratest 10. Tag all resources consistently Reference: See references/aws modules.md and references/oci modules.md Module Composition Testing Related Skills multi cloud architecture For architectural decisions cost optimization For cost effective designs