Dmitry Shkolnik
Dmitry Shkolnik

Reputation: 323

Is there any event generated when tag is added to an existing S3 object?

I'd like to have an AWS lambda triggered when a tag is added to an existing object in S3 bucket (in the same way as we can do it for object create and remove). Any way to do that?

Upvotes: 3

Views: 3683

Answers (4)

ChrisRich
ChrisRich

Reputation: 8716

Object tagging events are now supported:

s3:ObjectTagging:*
s3:ObjectTagging:Put
s3:ObjectTagging:Delete

Docs: https://docs.aws.amazon.com/AmazonS3/latest/userguide/notification-how-to-event-types-and-destinations.html

Upvotes: 3

Dmitry Buevich
Dmitry Buevich

Reputation: 355

According to AWS documentation there is s3:ObjectTagging:* event type, which can be used as Lambda trigger.

Upvotes: 0

strongjz
strongjz

Reputation: 4491

If you setup Cloudtail you could have a Lambda function monitor the logs and notify you on the tagging event PutBucketTagging

Example Lambda function https://github.com/retailnext/aws-lambda-cloudtrail-alert

Cloudtail Documentation http://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-user-guide.html

Upvotes: 3

Yeshodhan Kulkarni
Yeshodhan Kulkarni

Reputation: 2943

No. There are no events generated when a tag is added to an object.

Upvotes: 2

Related Questions