How ayushbhartiya01/aws-terraform-labs works
This repository is Terraform infrastructure for a multi-tier AWS web application. Its documented deployment workflow initializes shared remote state, provisions MySQL as an independently managed data tier, then deploys the web tier; the web tier exposes traffic through an ALB to autoscaled EC2 compute in isolated public/private network tiers. The README also describes state locking and a LocalStack-based local workflow. Source excerpts were not provided, so relationships below are limited to those documented in the README; paths for described but unsampled components use their existing Terraform directories.
Main entry points: webserver-cluster VPC network · s3 S3 state storage · mysql RDS MySQL · setup-local.sh Local environment setup
Components 16
State infrastructure
- S3 state storage
global/s3 - DynamoDB locking
global/s3
Data tier
- RDS MySQL
stage/data-stores/mysql - Remote-state lookup
stage/data-stores/mysql
Application network
- VPC network
stage/services/webserver-cluster - Public subnets
stage/services/webserver-cluster - Private subnets
stage/services/webserver-cluster - Application load balancer
stage/services/webserver-cluster - Health checks
stage/services/webserver-cluster - Auto Scaling Group
stage/services/webserver-cluster - Launch template
stage/services/webserver-cluster - EC2 instances
stage/services/webserver-cluster
Local sandbox
- Local environment setup
setup-local.sh - LocalStack emulator
Other components
- Terraform operator
- Browser user
Connections 20
- Terraform operator → S3 state storage: initializes and applies
README.md - Terraform operator → RDS MySQL: deploys data tier
README.md - Terraform operator → VPC network: deploys application tier
README.md - RDS MySQL → S3 state storage: persists state
README.md - VPC network → S3 state storage: persists state
README.md - S3 state storage → DynamoDB locking: uses locking
README.md - Remote-state lookup → RDS MySQL: looks up state
README.md - VPC network → Remote-state lookup: uses lookup
README.md - VPC network → Public subnets: spans three AZs
README.md - VPC network → Private subnets: spans three AZs
README.md - Application load balancer → Public subnets: uses ingress tier
README.md - Auto Scaling Group → Private subnets: uses application tier
README.md - Auto Scaling Group → Launch template: uses configuration
README.md - Launch template → EC2 instances: configures instances
README.md - Application load balancer → EC2 instances: distributes HTTP traffic
README.md - Application load balancer → Health checks: executes checks
README.md - Browser user → Application load balancer: sends HTTP traffic
README.md - Terraform operator → Local environment setup: sources script
README.md - Local environment setup → LocalStack emulator: configures endpoints
README.md - LocalStack emulator → S3 state storage: hosts local state
README.md