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년 전1286회 조회
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년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠