1

I created s3 bucket with event enabled for the bucket. When the new object is uploaded to the bucket sns will trigger an event to lambda to extract content from the file.

Is there any way to customize the sns event in generic format.

Kumaran
  • 21
  • 7
  • I think this will help you https://mattgadient.com/2016/06/14/creating-custom-notification-text-with-amazon-s3-and-sns-via-lambda/ – Vaisakh PS Jun 12 '18 at 13:09
  • 1
    Why don't you just trigger Lambda directly from S3 event, instead of going through SNS? – Caldazar Jun 12 '18 at 14:26

1 Answers1

0

There is no out-of-box way to customize the notification format (without involving a middleman like Lambda). I would suggest using AWS Lambda as the direct message destination instead of letting the S3 notification flows through SNS. This AWS documentation will be useful for you (https://docs.aws.amazon.com/AmazonS3/latest/dev/notification-walkthrough-2.html).

Denis Weerasiri
  • 1,120
  • 1
  • 8
  • 16