How mohitbnt/cloudsystem-monolith works
CloudSystem is infrastructure-as-code for deploying a horizontally scalable WordPress application on AWS. The principal workflow builds a Golden AMI, deploys environment-specific infrastructure, then bootstraps private EC2 instances with runtime configuration and—when needed—imports a database dump before WordPress becomes ready. Its major stages include networking, compute, persistent storage, caching, DNS/TLS, and secure configuration. The README documents these relationships; no source excerpts were provided, so edges are based on README statements rather than inspected implementation calls.
Main entry points: terraform/main.tf Terraform deployment · autoscalinggroup.tf EC2 autoscaling · user-data.tftpl Instance bootstrap · database/main.tf RDS MariaDB
Components 17
Image build
- AMI builder
packer/wordpress.ubuntu.pkr.hcl - Golden AMI
packer/wordpress.ubuntu.pkr.hcl
AWS platform
- Terraform deployment
terraform/main.tf - VPC networking
terraform/modules/networking/main.tf - IAM and security
terraform/modules/security/iam.tf - EC2 autoscaling
terraform/modules/compute/autoscalinggroup.tf - Load balancer
terraform/modules/compute/loadbalancer.tf - DNS and TLS
terraform/modules/dns-and-ssl/main.tf - Cloudflare DNS
- AWS services
Instance runtime
- Runtime parameters
terraform/modules/parameters/main.tf - Instance bootstrap
terraform/modules/compute/templates/user-data.tftpl - WordPress runtime
packer/wordpress.ubuntu.pkr.hcl
Application state
- S3 storage
terraform/modules/storage/main.tf - RDS MariaDB
terraform/modules/database/main.tf - Redis cache
terraform/modules/cache/main.tf
Other components
- Internet
Connections 29
- AMI builder → Golden AMI: builds
README.md - Terraform deployment → VPC networking: provisions
README.md - Terraform deployment → IAM and security: provisions
README.md - Terraform deployment → EC2 autoscaling: provisions
README.md - Terraform deployment → Load balancer: provisions
README.md - Terraform deployment → DNS and TLS: provisions
README.md - Terraform deployment → S3 storage: provisions
README.md - Terraform deployment → RDS MariaDB: provisions
README.md - Terraform deployment → Redis cache: provisions
README.md - Terraform deployment → Runtime parameters: provisions
README.md - EC2 autoscaling → Golden AMI: uses image
README.md - Internet → Cloudflare DNS: requests DNS
README.md - Cloudflare DNS → Load balancer: resolves to
README.md - Internet → Load balancer: sends HTTP/S
README.md - Load balancer → EC2 autoscaling: forwards HTTP
README.md - EC2 autoscaling → Instance bootstrap: runs at boot
README.md - Instance bootstrap → Runtime parameters: reads settings
README.md - Instance bootstrap → RDS MariaDB: reads secret
README.md - Instance bootstrap → S3 storage: downloads dump
README.md - Instance bootstrap → RDS MariaDB: imports dump
README.md - Instance bootstrap → WordPress runtime: configures
README.md - EC2 autoscaling → RDS MariaDB: connects
README.md - EC2 autoscaling → Redis cache: connects
README.md - WordPress runtime → S3 storage: stores uploads
README.md - WordPress runtime → Redis cache: uses object cache
README.md - VPC networking → EC2 autoscaling: hosts privately
README.md - VPC networking → RDS MariaDB: hosts privately
README.md - VPC networking → Redis cache: hosts privately
README.md - Terraform deployment → AWS services: deploys resources
README.md