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

gefragt vor 2 Jahren290 Aufrufe
1 Antwort
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
EXPERTE
Matt-B
beantwortet vor 2 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen