I want to know if we can create a cloudwatch event that triggered on S3 bucket every time that a change occurs on S3. For example, if a file is uploaded on s3 we recieve an email. I am using serverless framework, i found on the serverless documentation only stuff related to ec2, but not much things on s3. So please if anyone knows how to use cloudwatch with s3 i am all ears
我想知道我们是否可以创建每次在S3上发生更改时在S3存储桶上触发的cloudwatch事件。例如,如果在s3上传文件,我们会收到一封电子邮件。我使用无服务器框架,我在无服务器文档上发现只有与ec2相关的东西,但在s3上没有多少东西。所以,如果有人知道如何使用s3的云计算,我很满意
1 个解决方案
#1
1
https://serverless.com/framework/docs/providers/aws/events/s3/
https://serverless.com/framework/docs/providers/aws/events/s3/
e.g.
例如
functions:
emailOnUpload:
handler: email.handler
events:
- s3:
bucket: photos
event: s3: ObjectCreated:*
#1
1
https://serverless.com/framework/docs/providers/aws/events/s3/
https://serverless.com/framework/docs/providers/aws/events/s3/
e.g.
例如
functions:
emailOnUpload:
handler: email.handler
events:
- s3:
bucket: photos
event: s3: ObjectCreated:*