About This Architecture
LaporPah is a multi-AZ AWS infrastructure for a public reporting application, combining EC2-hosted Node.js backends with RDS PostgreSQL replication across ap-southeast-1a and ap-southeast-1b. GitHub Actions automates Docker image builds and pushes to Docker Hub, triggering EC2 deployments via CI/CD pipelines that pull the latest container images. The VPC spans two availability zones with public subnets hosting NAT Gateways and EC2 instances, while private subnets isolate RDS Primary and Standby databases with security groups enforcing port 5432 access only from EC2. S3 stores citizen-submitted photos in the lapor-pah-photos bucket, and CloudWatch monitors application health and infrastructure metrics. This architecture demonstrates high availability, automated deployment, and secure database isolation for mission-critical civic engagement systems.