Skip to content

Prepare AWS deployment (#8)#11

Merged
nam685 merged 1 commit intomainfrom
nlh/test_cd
Jun 23, 2025
Merged

Prepare AWS deployment (#8)#11
nam685 merged 1 commit intomainfrom
nlh/test_cd

Conversation

@nam685
Copy link
Owner

@nam685 nam685 commented Jun 23, 2025

Use smaller image for FastAPI service

Define CloudFormation stack for deploying webapp to AWS using ECS. Description:

  • 1 Cluster, 2 availability zones
  • 5 services: postgres + redis -> LangGraph API -> FastAPI backend -> NextJS frontend
  • Tasks run by EC2 instances (t2.micro) in private subnet
  • Auto scaling
  • Load balancer for frontend
  • NAT gateway for LangGraph API (outbound traffic to OpenAI API)
  • Docker image saved in public ECR repository
  • Secret API keys saved in AWS Secret Manager
  • Postgres service has mounted EFS volume
  • Implemented healthcheck
  • Logging with CloudWatch
  • Bastion host to ssh to EC2 instances

Create CD jobs

  • Build & upload necessary Docker images to ECR
  • Deploy to AWS ECS

Use smaller image for FastAPI service

Define CloudFormation stack for deploying webapp to AWS using ECS.
Description:
- 1 Cluster, 2 availability zones
- 5 services: postgres + redis -> LangGraph API -> FastAPI backend -> NextJS frontend
- Tasks run by EC2 instances (t2.micro) in private subnet
- Auto scaling
- Load balancer for frontend
- NAT gateway for LangGraph API (outbound traffic to OpenAI API)
- Docker image saved in public ECR repository
- Secret API keys saved in AWS Secret Manager
- Postgres service has mounted EFS volume
- Implemented healthcheck
- Logging with CloudWatch
- Bastion host to ssh to EC2 instances

Create CD jobs
- Build & upload necessary Docker images to ECR
- Deploy to AWS ECS
@nam685 nam685 self-assigned this Jun 23, 2025
@nam685 nam685 merged commit 68b575c into main Jun 23, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant