moto icon indicating copy to clipboard operation
moto copied to clipboard

failedTasks missing from ECS describe_services response

Open mihaiblidaru opened this issue 6 months ago • 1 comments

When calling ecs_client.describe_services function, the response is missing the entry failedTasks (among other things) in the deployments list

Moto response Image

AWS always returns a value, even if it's 0

Image

I would like to add failedTasks to the response, either always 0, or using an environment variable (something like MOTO_ECS_SERVICE_FAILED_TASKS ) https://github.com/getmoto/moto/blob/83e5cbe125bd0bb60ed095e8a5c1c56bb7290b5e/moto/ecs/models.py#L582-L594

If you are ok with this proposed change i will submit a pull request

mihaiblidaru avatar Jun 04 '25 21:06 mihaiblidaru

Hi @mihaiblidaru, PR's are always welcome! Having an environment variable would be ideal to configure this, it can just be set to 0 by default.

bblommers avatar Jun 07 '25 10:06 bblommers