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 年前檢視次數 285 次
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 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南