EC2: Tagging Metadata (Get Tag Created Date/Time)

0

I hope you can help me.

I would like to retrieve the timestamp of when a tag was last updated (or created if it's never been edited).

I was hoping to use Python (with boto3) to retrieve this information. I have investigated and it doesn't appear that this information is available. Does anyone know any different?

Many thanks in advance,

Lee

已提问 2 年前263 查看次数
1 回答
0

Hi There

If you have CloudTrail enabled, you can retrieve the information from the trail. For example, you can look for an event from the CreateTags API call on a particular EC2 instance. (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateTags.html)

Here are instructions for viewing CloudTrail events

https://docs.aws.amazon.com/awscloudtrail/latest/userguide/view-cloudtrail-events-console.html

profile pictureAWS
专家
Matt-B
已回答 2 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则