This project deploys a highly available, scalable 3-Tier Web Architecture on AWS using Terraform. It includes a public-facing Frontend, a private Backend, and a Bastion host for secure access.
- VPC: Custom VPC with Public and Private subnets across 2 Availability Zones.
-
Compute:
- Frontend: Auto Scaling Group (ASG) with Application Load Balancer (ALB).
- Backend: Auto Scaling Group (ASG) with Internal Load Balancer.
- Bastion Host: For secure SSH access to private instances.
-
Security: Tightly scoped Security Groups (ALB
$\to$ Frontend$\to$ Backend). - Scaling: Dynamic scaling policies based on CPU utilization.
- Terraform installed (
v1.0+). - AWS CLI installed and configured with your credentials.
- PowerShell (for the S3 setup script).
Run this script to create the S3 bucket for storing Terraform state.
Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass
./s3-script.ps1terraform init
terraform plan
terraform apply
sudo yum update -ysudo yum install -y stressstress --cpu 2 --timeout 600sudo systemctl stop httpd