terra-te-stack

Building and Securing Infrastructure-as-Code on DigitalOcean Cloud with Terraform, utilizing Three-Tier Architecture

Website

Description:

The terra-te-stack project is a comprehensive implementation of Infrastructure-as-Code (IaC) using Terraform, aimed at building and securing a three-tier architecture. This repository provides a standardized and efficient approach to deploy and manage the infrastructure required for modern web applications.

Key Features:

Step by Step Guide

  1. Project directory structure as described:
- terra-te-stack/
  - main.tf
  - provider.tf
  - environments/
    - dev/
      - compute.tfvars
  - modules/
    - compute/
      - main.tf
      - variables.tf
      - outputs.tf
    - storage/
      - main.tf
      - variables.tf
      - outputs.tf
  1. Set the environment variable with your DigitalOcean token in your shell or terminal session:
export TF_VAR_digitalocean_token="your-digitalocean-token"
  1. Run the following Terraform commands from the terra-te-stack directory: