Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Terraform Infrastructure as Code (IaC) with GCP, AWS, and Azure

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.

Table of Contents

Introduction

This repository provides comprehensive Terraform configurations to deploy scalable and secure multi-tier application architectures on AWS, Azure, and GCP.

Features

  • Multi-cloud support (AWS, Azure, GCP)

  • Modular Terraform configurations

  • State management with remote backends

  • Implementation of best practices

  • Example configurations for multi-tier architectures

  • Project Structure

.
├── 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

Usage

Prerequisites

  • Terraform installed
  • Cloud provider credentials configured

Steps to Deploy

  1. Clone the repository:

    git clone https://github.com/wonderolabisi/terraform-iac.git
    cd terraform-iac
  2. Navigate to the desired cloud provider directory (e.g., aws, azure, gcp):

    cd aws
  3. Initialize Terraform:

    terraform init
  4. Apply the configuration:

    terraform apply
  5. Destroy the infrastructure:

    terraform destroy

Best Practices

  • 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.

Contributing

We welcome contributions! Please read our contributing guidelines for more details.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages