How aiops-02/expense-infra-vm-v1 works
This repository provisions AWS infrastructure for a three-tier Expense application; it does not contain the application implementation. The main workflow is Terraform apply: establish network and access controls, create MySQL then backend and frontend VMs with tier-specific setup, publish DNS and HTTPS ingress, and wait for VM and end-to-end readiness. The diagram reflects README-documented behavior; no source excerpts were provided, so edges cite the README rather than inferred Terraform internals.
Main entry points: ec2.tf Frontend VM · dns.tf Route53 Records · readiness.tf Readiness Checks · network.tf VPC Network
Components 13
Network and Access
- VPC Network
network.tf - Tier Security Groups
security.tf
Application Tiers
- MySQL VM
ec2.tf - MySQL Setup
templates/mysql.sh.tftpl - Backend VM
ec2.tf - Backend Setup
templates/backend.sh.tftpl - Frontend VM
ec2.tf - Frontend Setup
templates/frontend.sh.tftpl
Ingress and DNS
- Route53 Records
dns.tf - HTTPS Load Balancer
alb.tf
Readiness and Outputs
- Readiness Checks
readiness.tf - Stack Outputs
outputs.tf
Other components
- Terraform Operator
Connections 26
- Terraform Operator → VPC Network: applies stack
README.md - Terraform Operator → MySQL VM: applies stack
README.md - Terraform Operator → Backend VM: applies stack
README.md - Terraform Operator → Frontend VM: applies stack
README.md - VPC Network → MySQL VM: hosts VM
README.md - VPC Network → Backend VM: hosts VM
README.md - VPC Network → Frontend VM: hosts VM
README.md - Tier Security Groups → MySQL VM: allows traffic
README.md - Tier Security Groups → Backend VM: allows traffic
README.md - Tier Security Groups → Frontend VM: allows traffic
README.md - MySQL VM → MySQL Setup: runs setup
README.md - Backend VM → Backend Setup: runs setup
README.md - Frontend VM → Frontend Setup: runs setup
README.md - Backend VM → Route53 Records: uses DB hostname
README.md - Frontend VM → Route53 Records: resolves backend
README.md - HTTPS Load Balancer → Frontend VM: targets instance
README.md - Terraform Operator → HTTPS Load Balancer: publishes HTTPS
README.md - Route53 Records → HTTPS Load Balancer: aliases app name
README.md - Route53 Records → MySQL VM: records private IP
README.md - Route53 Records → Backend VM: records private IP
README.md - Route53 Records → Frontend VM: records private IP
README.md - Readiness Checks → MySQL VM: checks setup
README.md - Readiness Checks → Backend VM: checks setup
README.md - Readiness Checks → Frontend VM: checks setup
README.md - Readiness Checks → HTTPS Load Balancer: probes app URL
README.md - Terraform Operator → Stack Outputs: reads results
README.md