How gajjarvatsall/aws-devops-platform works
This repository combines a Flask staging service with reusable Terraform modules and a staging environment that composes them into an AWS platform. The main user workflow is requesting the dashboard or health APIs; readiness and status checks load database credentials and test MySQL, while the dashboard also queries live AWS resource status. Infrastructure relationships below follow the README’s documented module composition; sampled application code supports the runtime relationships. Terraform module internals were not sampled, so their detailed resource wiring is not expanded.
Main entry points: main.tf Staging root · autoscaling Application capacity · app.py Flask service · alb Load balancer
Components 23
Application service
- Flask service
app/app.py - Live dashboard
app/app.py - Liveness check
app/app.py - Readiness check
app/app.py - Status API
app/app.py - Database check
app/app.py - Secret provider
app/app.py - AWS status checks
app/app.py
Staging environment
- Staging root
environments/staging/main.tf
Infrastructure modules
- Network
modules/vpc - Security and IAM
modules/security-groups - Load balancer
modules/alb - Application capacity
modules/autoscaling - Managed database
modules/rds - Image registry
modules/ecr - Log buckets
modules/s3 - Application logs
modules/cloudwatch
State bootstrap
- State backend
bootstrap/backend/main.tf
Other components
- HTTP client
- Secrets Manager
- MySQL database
- AWS status APIs
- Platform operator
Connections 35
- HTTP client → Flask service: requests
README.md - Flask service → Live dashboard: routes
app/app.py - Flask service → Liveness check: routes
app/app.py - Flask service → Readiness check: routes
app/app.py - Flask service → Status API: routes
app/app.py - Readiness check → Database check: checks database
app/app.py - Status API → Database check: checks database
app/app.py - Live dashboard → Database check: checks database
app/app.py - Database check → Secret provider: loads credentials
app/app.py - Secret provider → Secrets Manager: fetches secret
app/app.py - Database check → MySQL database: tests connection
app/app.py - Live dashboard → AWS status checks: reads live status
app/app.py - AWS status checks → AWS status APIs: queries resources
app/app.py - Platform operator → Staging root: deploys
README.md - Staging root → Network: composes
README.md - Staging root → Security and IAM: composes
README.md - Staging root → Load balancer: composes
README.md - Staging root → Application capacity: composes
README.md - Staging root → Managed database: composes
README.md - Staging root → Image registry: composes
README.md - Staging root → Log buckets: composes
README.md - Staging root → Application logs: composes
README.md - Staging root → State backend: stores state
README.md - Network → Load balancer: provides subnets
README.md - Network → Application capacity: provides subnets
README.md - Network → Managed database: provides subnets
README.md - Image registry → Application capacity: provides image
README.md - Log buckets → Load balancer: stores access logs
README.md - Application logs → Application capacity: configures bootstrap logs
README.md - Security and IAM → Load balancer: provides access controls
README.md - Security and IAM → Application capacity: provides role and profile
README.md - Security and IAM → Managed database: provides access controls
README.md - Managed database → Application capacity: provides secret ARN
README.md - Load balancer → Application capacity: provides target group
README.md - Application capacity → Flask service: runs service
README.md