Skip to content

Latest commit

 

History

History
46 lines (35 loc) · 1.67 KB

README.md

File metadata and controls

46 lines (35 loc) · 1.67 KB

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. Configure the AWS CLI to authenticate with your account. Two options:

    • Use SSO and set up an AWS Profile to access your user (recommended)
    • Run aws configure in your terminal to use the Terraform IAM user. (not recommended)
  4. In your desired project folder, clone the repo.

  5. Finally, run terraform init in any Terraform directory to set up the Terraform backend.