About This Architecture
Production-grade full-stack deployment architecture combines NestJS API and NextJS UI in Docker containers on EC2 t3.medium behind Application Load Balancer. Traffic flows from Route 53 through CloudFront CDN with WAF protection to ALB in public subnet, routing to Nginx reverse proxy serving containerized services in private subnet. EC2 connects to RDS PostgreSQL db.t3.micro for persistence while CodePipeline orchestrates CI/CD from Bitbucket through CodeBuild and CodeDeploy, pulling images from ECR. This architecture demonstrates AWS best practices for containerized workloads without Kubernetes overhead, balancing cost efficiency with production reliability for startups and mid-size teams. Fork this diagram on Diagrams.so to customize VPC CIDR ranges, swap RDS engine types, or add Auto Scaling Groups for your deployment needs.