moto
moto copied to clipboard
failedTasks missing from ECS describe_services response
When calling ecs_client.describe_services function, the response is missing the entry failedTasks (among other things) in the deployments list
Moto response
AWS always returns a value, even if it's 0
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
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.