amazon s3 - Can SNS pass user-metadata to rest layer after object created event? -


i need pass user-metadata when perform put action add new objects s3 bucket. after file uploaded (object created), s3:objectcreated:put pass notification rest api method call further processing.

i have found doc on how pass user-metadata put operation, not doc on how make sns message contain user-metadata when sending message rest api method.

would sns message automatically contain user-metadata newly created object or have perform additional configuration make happen?

update:

should generate head request using node.js:

       let authstring: string = "aws akiaiosfodnn7example:02236q3v0ronhpabx5scyvf1bnruu=";         var options = {             host: 'bucket.s3.amazonaws.com',             path: '/filename.jpg',             method: 'head',             headers: { 'authorization': authstring, 'date': 'date: wed, 28 oct 2009 22:32:00 gmt' }         };          var req = https.request(options, function(res) {             res.on('data', function(d) {                 process.stdout.write(d);             });         }); 

your code receives sns message need send head request bucket fetch object's metadata. operation goes under various names similar getobjectmetadata in sdks.

it isn't included in event notification.

or code lambda function receive initial event, fetch metadata, , combine new notification message structure containing need, , send on sns or sqs or directly api.


Comments

Popular posts from this blog

ios - MKAnnotationView layer is not of expected type: MKLayer -

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -