MaxInstanceLifetime value for ECS Fargate

1

My team uses AWS ECS Fargate. We would like to perform a routine recycle for our ECS tasks. I found the MaxInstanceLifetime value parameter but it seems mostly for EC2 instances. Is it possible to set this parameter for ECS Fargate? If so, where in the console can I find this? If not, are there any suggestions on how we can go about recycling our ECS Fargate tasks?

Docs:

gefragt vor 2 Jahren1287 Aufrufe
2 Antworten
1
Akzeptierte Antwort

One option is to use update service API call, and --force-new-deployment flag.

MaxInstanceLifetime does not apply for Fragate.

Jason_S
beantwortet vor 2 Jahren
0

Create a sidecar container with sleep XXX and mark it as essential

beantwortet vor 2 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen