Is there a way to get the total execution time of an ECS task?

0

Hi, I need to get the execution time of an ECS task. With CloudTrail, I'm able to get the start time of the task but can't find any tag with stop/finish execution timestamp information. How can I achieve that? Thank you very much.

1 Answer
1
Accepted Answer

Recent tasks are visible on the ECS Tasks List. You will need to filter on Desired Status=Stopped. For historical task information, you can use the CloudWatch Container Insights. Please see here for a step by step guide.

profile pictureAWS
answered a year ago
profile pictureAWS
EXPERT
kentrad
reviewed a year ago
  • Awesome link you provided. Thank you very much. Finally, is there a way to convert the total execution time into a Metric?

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions