-
Notifications
You must be signed in to change notification settings - Fork 2
Description
Our current ECS deployment uses AWS Fargate. While Fargate offers convenience and ease of use, it comes at a significant cost premium, especially for our predictable, long-running services. As our application has matured, our hosting costs have become a more significant part of our operational expenses.
We should migrate our ECS cluster from the Fargate launch type to the EC2 launch type.
This will involve:
Updating the Terraform configuration to remove the Fargate launch type and add an EC2 capacity provider.
Creating a new Auto Scaling Group to manage the EC2 instances that will host the containers.
Ensuring the EC2 instances have the correct IAM roles and security groups to communicate with ECS and other services.
Updating our deployment scripts if necessary to target the new EC2-backed cluster.