gpt4 book ai didi

amazon-web-services - aws cloudformation s3 向 SQS 发出的事件通知不起作用

转载 作者:行者123 更新时间:2023-12-03 07:28:48 24 4
gpt4 key购买 nike

我编写了一个 cloudformation 模板,我试图在其中创建 S3 和 SQS 队列。

我正在尝试实现以下功能:

1.创建SQS队列

2.创建SQs队列策略以允许S3事件

3.创建S3并通知QueueConfigurations来触发SQS

以下是我的 AWS cloudformation 模板链接,其中第 1 步和第 2 步正确执行,但我在第 1 步遇到问题。 3

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

我遇到以下错误:

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=

最佳答案

SQS 的 ARN 格式如下

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

您当前的 ARN 的格式为

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

关于amazon-web-services - aws cloudformation s3 向 SQS 发出的事件通知不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57974934/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com