Reputation: 1993
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
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
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