Skip to content

Prepare AWS deployment#8

Merged
nam685 merged 1 commit intomainfrom
nlh/aws
Jun 21, 2025
Merged

Prepare AWS deployment#8
nam685 merged 1 commit intomainfrom
nlh/aws

Conversation

@nam685
Copy link
Owner

@nam685 nam685 commented Jun 21, 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
    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
Create CD jobs
- Build & upload necessary Docker images to ECR
- Deploy to AWS ECS
@nam685 nam685 merged commit 8c12676 into main Jun 21, 2025
2 checks passed
@nam685 nam685 deleted the nlh/aws branch June 21, 2025 13:07
nam685 added a commit that referenced this pull request Jun 21, 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

Create CD jobs
- Build & upload necessary Docker images to ECR
- Deploy to AWS ECS
nam685 added a commit that referenced this pull request Jun 21, 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

Create CD jobs
- Build & upload necessary Docker images to ECR
- Deploy to AWS ECS
nam685 added a commit that referenced this pull request Jun 22, 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

Create CD jobs
- Build & upload necessary Docker images to ECR
- Deploy to AWS ECS
nam685 added a commit that referenced this pull request Jun 22, 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

Create CD jobs
- Build & upload necessary Docker images to ECR
- Deploy to AWS ECS
nam685 added a commit that referenced this pull request Jun 22, 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

Create CD jobs
- Build & upload necessary Docker images to ECR
- Deploy to AWS ECS
nam685 added a commit that referenced this pull request Jun 22, 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

Create CD jobs
- Build & upload necessary Docker images to ECR
- Deploy to AWS ECS
nam685 added a commit that referenced this pull request Jun 22, 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

Create CD jobs
- Build & upload necessary Docker images to ECR
- Deploy to AWS ECS
nam685 added a commit that referenced this pull request Jun 22, 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

Create CD jobs
- Build & upload necessary Docker images to ECR
- Deploy to AWS ECS
nam685 added a commit that referenced this pull request Jun 22, 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

Create CD jobs
- Build & upload necessary Docker images to ECR
- Deploy to AWS ECS
nam685 added a commit that referenced this pull request Jun 22, 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

Create CD jobs
- Build & upload necessary Docker images to ECR
- Deploy to AWS ECS
nam685 added a commit that referenced this pull request Jun 22, 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

Create CD jobs
- Build & upload necessary Docker images to ECR
- Deploy to AWS ECS
nam685 added a commit that referenced this pull request Jun 22, 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

Create CD jobs
- Build & upload necessary Docker images to ECR
- Deploy to AWS ECS
nam685 added a commit that referenced this pull request Jun 22, 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

Create CD jobs
- Build & upload necessary Docker images to ECR
- Deploy to AWS ECS
nam685 added a commit that referenced this pull request Jun 22, 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

Create CD jobs
- Build & upload necessary Docker images to ECR
- Deploy to AWS ECS
nam685 added a commit that referenced this pull request Jun 22, 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
nam685 added a commit that referenced this pull request Jun 22, 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
nam685 added a commit that referenced this pull request Jun 22, 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
nam685 added a commit that referenced this pull request Jun 22, 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
nam685 added a commit that referenced this pull request 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
nam685 added a commit that referenced this pull request 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
nam685 added a commit that referenced this pull request 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
nam685 added a commit that referenced this pull request 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
nam685 added a commit that referenced this pull request 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
nam685 added a commit that referenced this pull request 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
nam685 added a commit that referenced this pull request 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
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