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:

preguntada hace 2 años1288 visualizaciones
2 Respuestas
1
Respuesta aceptada

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

MaxInstanceLifetime does not apply for Fragate.

Jason_S
respondido hace 2 años
0

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

respondido hace 2 años

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas