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:

已提問 2 年前檢視次數 1287 次
2 個答案
1
已接受的答案

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

MaxInstanceLifetime does not apply for Fragate.

Jason_S
已回答 2 年前
0

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

已回答 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南