Engineering
terraform-module-library avatar

terraform-module-library

Build production-ready, reusable Terraform modules for multi-cloud infrastructure. Includes standardized patterns for AWS, Azure, GCP, and OCI with built-in testing and validation.

Introduction

This skill provides a comprehensive library of production-ready Terraform module patterns designed for multi-cloud environments, including AWS, Azure, GCP, and OCI. It is intended for DevOps engineers, platform architects, and cloud infrastructure teams aiming to standardize provisioning workflows and enforce infrastructure-as-code (IaC) best practices. By adopting these modular patterns, teams can significantly reduce configuration drift, improve resource tagging consistency, and accelerate the deployment of compliant infrastructure components across diverse cloud service providers.

  • Standardized module architecture featuring dedicated folders for variables, outputs, versions, and examples.

  • Support for multi-cloud infrastructure provisioning including VPCs, EKS/AKS/GKE clusters, RDS/Cloud SQL databases, and Object Storage.

  • Integrated validation logic for HCL variables to ensure robust input handling and minimize runtime deployment errors.

  • Automated testing framework using Terratest to verify module functionality via lifecycle management (Init, Apply, Destroy).

  • Best practice implementation including semantic versioning, provider pinning, consistent resource tagging, and modular composition via local and remote module sources.

  • Utilize the standard directory structure to maintain parity across provider-specific module sets.

  • Leverages the examples directory to provide clear, actionable reference implementations for common use cases.

  • Requires familiarity with Terraform/OpenTofu CLI, HCL syntax, and specific provider cloud resource concepts.

  • Recommended for managing complex environment dependencies where modules need to be reused across development, staging, and production workspaces.

  • Encourages the use of conditional resource creation using count and for_each to optimize module flexibility and reduce resource footprint.

Repository Stats

Stars
34,561
Forks
3,745
Open Issues
5
Language
Python
Default Branch
main
Sync Status
Idle
Last Synced
Apr 30, 2026, 08:33 AM
View on GitHub