Skip to content

Refactor: Migrate ECS from Fargate to EC2 for Cost Optimization #38

@carlagesa

Description

@carlagesa

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.

Metadata

Metadata

Assignees

Labels

🌟enhancementImprovements or optimizations to existing functionality.🎯 goalFor high-level objectives or major goals for the project.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions