serverlesspub / imagemagick-aws-lambda-2

ImageMagick for AWS Lambda 2 runtimes
https://serverless.pub
Other
259 stars 163 forks source link

SNS Event Notification Not Passing bucket name in example #32

Open abbasghulam opened 4 years ago

abbasghulam commented 4 years ago

I'm using the example function for resizing and used SNS topic event notification as I already have another function.

I'm facing this issue

{ "errorType": "TypeError", "errorMessage": "Cannot read property 'bucket' of undefined", "stack": [ "TypeError: Cannot read property 'bucket' of undefined", " at Runtime.exports.handler (/var/task/index.js:13:32)", " at Runtime.handleOnce (/var/runtime/Runtime.js:66:25)" ] }

SNS is not passing the bucket name with the object. Any help on this, please?