[英]AWS SNS - how to customize the s3 event
I created s3 bucket with event enabled for the bucket. 我创建了s3存储桶,并为存储桶启用了事件。 When the new object is uploaded to the bucket sns will trigger an event to lambda to extract content from the file. 当新对象上传到存储桶时,sns将触发一个事件到lambda来从文件中提取内容。
Is there any way to customize the sns event in generic format. 有什么方法可以以通用格式自定义sns事件。
There is no out-of-box way to customize the notification format (without involving a middleman like Lambda). 没有现成的方法可以自定义通知格式(不涉及Lambda之类的中间人)。 I would suggest using AWS Lambda as the direct message destination instead of letting the S3 notification flows through SNS. 我建议使用AWS Lambda作为直接消息目标,而不是让S3通知流经SNS。 This AWS documentation will be useful for you ( https://docs.aws.amazon.com/AmazonS3/latest/dev/notification-walkthrough-2.html ). 该AWS文档将对您有用( https://docs.aws.amazon.com/AmazonS3/latest/dev/notification-walkthrough-2.html )。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.