Architecture
-Push the Docker image to Amazon ECR (container registry). Run the application on ECS Fargate which handles the containers (alternativily to EC2 instances) -Put an Application Load Balancer in front to distribute traffic and handle SSL -Store API keys in AWS Secrets Manager
Security Store API keys in Secrets Manager and use IAM roles for ECS tasks.
Deployment Steps
- Build Docker image locally
- Push image to ECR
- Create ECS task definition pointing to the ECR image
- Create ECS service that runs tasks behind the load balancer
- Configure auto-scaling based on CPU usage
- Set up monitoring
- LangSmith: Great integration with LangChain
- Options like Grafana as well