简体   繁体   English

aws cloudformation s3 事件通知 SQS 不起作用

[英]aws cloudformation s3 event notification to SQS not working

I have written one cloudformation template in which I am trying to create S3 and SQS queue.我写了一个 cloudformation 模板,我试图在其中创建 S3 和 SQS 队列。

I am trying to achieve following functionality:我正在尝试实现以下功能:

1.create SQS queue 1.创建SQS队列

2.create SQs queue policy to allow S3 event 2.创建SQs队列策略以允许S3事件

3.create S3 and notification QueueConfigurations to trigger SQS 3.创建S3和通知QueueConfigurations来触发SQS

Following is my AWS cloudformation template link in which 1st and 2nd step gets execute properly but I am facing issue at step no.以下是我的 AWS cloudformation 模板链接,其中第 1 步和第 2 步正确执行,但我在第 1 步遇到问题。 3 3

https://github.com/maheshvarak89/aws-cfn-templates/blob/master/s3_event_sqs https://github.com/maheshvarak89/aws-cfn-templates/blob/master/s3_event_sqs

I am facing following error:我面临以下错误:

The ARN is not well formed (Service: Amazon S3; Status Code: 400; Error Code: InvalidArgument; Request ID: XXX03XXXXBC36E49; S3 Extended Request ID: bYBRrz0ybftGFwHxFCBXWBI5nRF15COGCL6Q8tm3bNs/e+aWafy+pAIIeUNy82DmOKJcVq1MthE= ARN 格式不正确(服务:Amazon S3;状态代码:400;错误代码:InvalidArgument;请求 ID:XXX03XXXXBC36E49;S3 扩展请求 ID:bYBRrz0ybftGFwHxFCBXWBI5nRF15COGCL6Q8tm3bNs/e+aIIeWafycVafy+

An ARN for SQS is in the form SQS 的 ARN 格式为

arn:aws:sqs:${Region}:${Account}:${QueueName}

You current ARN is of the form您当前的 ARN 是以下形式

arn:aws:sqs:::${QueueName}

您可以使用 GetAtt 简单地引用它,而不是构建 ARN:

Queue: !GetAtt MyQueue.Arn

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM