Is it possible to receive tags of a stopped Task in AWS Fargate?

Viewed 27

I am using AWS SDK to start and control certain ECS Tasks on AWS Fargate. ECS.describeTasks() can be called to receive details of tasks and the returned data includes .tags array.

As soon as the task is in STOPPED status, it seems that the tags are removed from the task.

The AWS SDK documentation does not mention that .tags would be empty for stopped tasks. While the task is in any other status (also DEPROVISIONING), tags are available.

The AWS ECS documentation "Tagging your resources " does not either discuss about lifecycle of tags. There is a sentence that "Tags are removed when a resource is removed", but I would not consider stopped tasks removed as they are still returned via API & Console.

Is there any way to (programmatically) receive tags of a stopped tasks?

0 Answers
Related