Skip to content

Latest commit

 

History

History
68 lines (40 loc) · 1.62 KB

File metadata and controls

68 lines (40 loc) · 1.62 KB

Three Tier Architecture AWS

CI-CD pipeline Drift Detection

This folder contains the infrastructure (IaC) for Spring + React App project.

🏗️ Architecture Diagram

Architecture Diagram

⚙️ CI/CD Pipeline

CI/CD Pipeline

🚀 How to Apply

Follow these steps to deploy the infrastructure using Terraform:

1. Copy Environment Configuration

cp .env.sample .env

Edit .env and override necessary variables according to your environment (e.g., AWS credentials, database credentials).

2. Load Environment Variables

source ./bin/load_env.sh

This script will export all environment variables defined in .env for the current shell session.

3. Select Terraform Workspace

Choose the workspace you want to deploy (e.g., dev or prod):

terraform workspace select dev

If the workspace doesn't exist yet, create it:

terraform workspace new dev

4. Apply Terraform Configuration

Run Terraform apply with the corresponding tfvars file:

terraform apply -var-file=./envs/dev.tfvars

For production:

terraform apply -var-file=./envs/prod.tfvars