Search code examples
amazon-ecsaws-cli

using aws cli how to get list of tasks id per ecs service


using AWS CLI how to get list of tasks ids per ecs services. When I use describe-services it does not list task id details only the count of number of tasks


Solution

  • You would use the aws ecs list-tasks --cluster <cluster-name> --service-name <service-name> command to get a list of tasks for a specific service.