简体   繁体   English

AWS SNS-如何自定义s3事件

[英]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.

相关问题 AWS EventBridge - 自定义 s3 事件模式 - AWS EventBridge - Customize s3 event pattern 如何使用 AWS SNS 设置 AWS S3 以进行上传事件? - How do i set AWS S3 with AWS SNS for upload event? 通过SNS对简单电子邮件进行AWS S3事件JSON解析 - AWS S3 Event JSON parsing for simple email via SNS 将AWS S3事件转发到SQS最终会变成与从S3到SNS到SQS不同的消息吗? - Will AWS S3 event forwarding to SQS will end up being a different message than S3 to SNS to SQS? S3事件触发了不同的SNS主题 - S3 event trigger to different SNS topics AWS ApiGateway集成S3、SQS、SNS、DynamoDB等服务,如何构建AWS CloudFormation集成URI? - How to construct AWS CloudFormation integration URI for AWS ApiGateway integration with S3, SQS, SNS, DynamoDB and other services? AWS s3 -> lambda -> sns = 如何将带有新图像的 url 链接发送到 android 应用程序? - AWS s3 - > lambda -> sns = How to send url link with new image to android app? 如何模拟 aws-sdk gem 来存储 s3 上传、sqs 消息、sns 消息 - How to mock aws-sdk gem to store s3 uploads, sqs messages, sns messages S3事件 - > Lambda vs S3-> SNS-> Lambda - S3 Event -> Lambda vs S3->SNS->Lambda 一桶-多个主题AWS S3,SNS - One Bucket - Multiple Topics AWS S3, SNS
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM