/infra_iac

Terraform IaC for my projects on AWS, GCP, Cloudflare and GitHub - Testing the code

Primary LanguageHCLDo What The F*ck You Want To Public LicenseWTFPL

Terraform IaC

Table of Contents
  1. About
  2. Usage

About

This repository is concerned with the provisioning of infrastructure for any of my personal projects using Terraform.

Currently, the cloud services used to host my projects are AWS, GCP and Cloudflare.

Usage

This section guides you on how to setup and use this Terraform monorepo in your local machine.

Technically there's a chicken and egg situation here because using this code assumes you already have S3 and DynamoDB set up as a remote backend. So, the instructions here just assume you already have that set up, and you're just Terraforming from another computer with a fresh install of everything.

  1. First, ensure Terraform is installed on your dev computer.
  2. Ensure the AWS CLI is also installed on your dev computer.
  3. Run aws configure in your terminal to configure the AWS CLI to use the Terraform IAM user. This is how Terraform will gain access to your AWS account.
  4. In your desired project folder, clone the repo.
  5. Finally, run terraform init in any Terraform directory to set up the Terraform backend.