This repository contains Terraform configurations for deploying infrastructure on AWS, Azure, and GCP. It demonstrates the use of Terraform modules, state management, and best practices for configuration.
This repository provides comprehensive Terraform configurations to deploy scalable and secure multi-tier application architectures on AWS, Azure, and GCP.
-
Multi-cloud support (AWS, Azure, GCP)
-
Modular Terraform configurations
-
State management with remote backends
-
Implementation of best practices
-
Example configurations for multi-tier architectures
.
├── aws
│ ├── main.tf
│ ├── variables.tf
│ ├── outputs.tf
│ ├── provider.tf
│ ├── versions.tf
│ └── modules
│ ├── vpc
│ │ ├── main.tf
│ │ ├── variables.tf
│ │ ├── outputs.tf
│ │ └── README.md
│ ├── ec2
│ │ ├── main.tf
│ │ ├── variables.tf
│ │ ├── outputs.tf
│ │ └── README.md
│ └── rds
│ ├── main.tf
│ ├── variables.tf
│ ├── outputs.tf
│ └── README.md
├── azure
│ ├── main.tf
│ ├── variables.tf
│ ├── outputs.tf
│ ├── provider.tf
│ ├── versions.tf
│ └── modules
│ ├── vnet
│ │ ├── main.tf
│ │ ├── variables.tf
│ │ ├── outputs.tf
│ │ └── README.md
│ ├── vm
│ │ ├── main.tf
│ │ ├── variables.tf
│ │ ├── outputs.tf
│ │ └── README.md
│ └── sql
│ ├── main.tf
│ ├── variables.tf
│ ├── outputs.tf
│ └── README.md
├── gcp
│ ├── main.tf
│ ├── variables.tf
│ ├── outputs.tf
│ ├── provider.tf
│ ├── versions.tf
│ └── modules
│ ├── vpc
│ │ ├── main.tf
│ │ ├── variables.tf
│ │ ├── outputs.tf
│ │ └── README.md
│ ├── compute
│ │ ├── main.tf
│ │ ├── variables.tf
│ │ ├── outputs.tf
│ │ └── README.md
│ └── sql
│ ├── main.tf
│ ├── variables.tf
│ ├── outputs.tf
│ └── README.md
└── README.md
- Terraform installed
- Cloud provider credentials configured
-
Clone the repository:
git clone https://github.com/wonderolabisi/terraform-iac.git cd terraform-iac -
Navigate to the desired cloud provider directory (e.g.,
aws,azure,gcp):cd aws -
Initialize Terraform:
terraform init
-
Apply the configuration:
terraform apply
-
Destroy the infrastructure:
terraform destroy
- Use Terraform modules to encapsulate and reuse configuration.
- Store Terraform state remotely to enable team collaboration.
- Use variables and outputs for flexible configuration and resource referencing.
- Implement proper IAM roles and policies for security.
We welcome contributions! Please read our contributing guidelines for more details.
This project is licensed under the MIT License - see the LICENSE file for details.