aws / containers-roadmap

This is the public roadmap for AWS container services (ECS, ECR, Fargate, and EKS).
https://aws.amazon.com/about-aws/whats-new/containers/
Other
5.21k stars 316 forks source link

[ECS] [request]: Allow termination policies for services. #1763

Open jacobb84 opened 2 years ago

jacobb84 commented 2 years ago

Community Note

Tell us about your request It doesn't seem like there's any way to control which containers are shut down during a scale in. #125 touches on this a bit, but manually protecting a task from scale-in isn't exactly what I'm looking for. Ideally it would be great if we could get the equivalent of the termination policies that EC2 Auto-scale groups use,

image

Which service(s) is this request for? This could be Fargate, ECS,

Tell us about the problem you're trying to solve. What are you trying to do, and why is it hard? My specific problem is that I'd like to be able to tell the ECS service to always terminate the oldest container during a scale-in. We're running code that registers these containers with an external service and in cases where multiple containers try to register the most recent takes precedence. When ECS scales in the most recent container instead of the older ones it causes interruptions in the service.

Are you currently working around this issue? None that I've been able to find yet.

lobsterdore commented 2 years ago

This is a much needed feature.