pandith padaya
pandith padaya

Reputation: 1993

aws s3 notification include metadata information

I have a lambda function that gets notification whenever and s3 object gets added. The function then reads some metadata of the s3 object. Is there any way to include the metadata in the notification itself, rather than me having to go and read the head object.

Upvotes: 6

Views: 2317

Answers (2)

Kanhaiya Raturi
Kanhaiya Raturi

Reputation: 1

No, S3 event notification does not include metadata or tags. You have to explicitly get it through head-object

aws s3api head-object --bucket my_bucket --key my-file.json

Upvotes: -1

Michael - sqlbot
Michael - sqlbot

Reputation: 179384

The event notification data structure does not include object metadata or tags, and there is not a way to enable their inclusion.

Upvotes: 5

Related Questions