About This Architecture
Full-stack CI/CD pipeline deploys Dockerized NestJS API and Next.js UI to AWS EC2 via CodeBuild, ECR, and CodeDeploy. Developer commits to Bitbucket trigger CodeBuild to build Docker images, push to ECR, then CodeDeploy provisions containers on t3.medium EC2 instances behind an ALB with ACM SSL termination and WAF protection. NestJS API connects to RDS PostgreSQL with read replica for scalability, Next.js UI serves static assets from S3, and CloudWatch monitors application health. Fork this diagram on Diagrams.so to customize instance types, add Auto Scaling groups, or integrate CodePipeline orchestration for your deployment workflow.