【发布时间】:2015-10-06 21:36:56
【问题描述】:
我想在 AWS S3 存储桶中设置以下事件/通知配置: 收到文件 (s3:ObjectCreated:*) 后,应触发两个目标:
- SQS:将文件排队等待详细的后处理,保留几天
- Lambda:做一些快速的即时指标处理
当我尝试通过 AWS 控制台设置配置时,我收到以下错误消息:
Configurations overlap. Configurations on the same bucket cannot share a common event type. : s3:ObjectCreated:*, s3:ObjectCreated:*
我尝试按照用户指南的建议通过 AWS SDK (Java) 设置配置,但结果相似:
Caught an AmazonServiceException, which means your request made it to Amazon S3, but was rejected with an error response for some reason.
Error Message: Configurations overlap. Configurations on the same bucket cannot share a common event type. (Service: Amazon S3; Status Code: 400; Error Code: InvalidArgument; Request ID: A0E8738522EA218F)
HTTP Status Code: 400
AWS Error Code: InvalidArgument
Error Type: Client
Request ID: A0E8738522EA218F
Error XML<?xml version="1.0" encoding="UTF-8"?>
<Error><Code>InvalidArgument</Code><Message>Configurations overlap. Configurations on the same bucket cannot share a common event type.</Message><ArgumentName>Event</ArgumentName><ArgumentValue>s3:ObjectCreated:*, s3:ObjectCreated:*</ArgumentValue><RequestId>A0E8738522EA218F</RequestId><HostId>p4qYoIXi38u3Jl3p0xpI7TFWgs0ZxsqK89oDTTy8D/tbw39NnaIT99jIvHIxt4XliRFxqNWl32M=</HostId></Error>
【问题讨论】:
标签: amazon-web-services amazon-s3 amazon-sqs aws-lambda