RedriveAllowPolicy error during Cloudformation deploy

0

Hello there,

I want to create a SQS queue that is defined in a Cloudformation template like this

FooQueue:
Type: AWS::SQS::Queue
Properties:
RedriveAllowPolicy:
redrivePermission: denyAll

which worked before for other queues (and should be working according to the docs?). However, for this one, I am now getting the error "extraneous key [RedriveAllowPolicy] not permitted".

Am I missing something, or did something get changed?

Thanks in advance!

已提問 2 年前檢視次數 425 次
1 個回答
0
已接受的答案

Hello,

Thanks for reaching out.

As the official cloudformation doc mentioned(https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sqs-queues.html ), you need to provide a json property for RedriveAllowPolicy, follow is one sample:

AWSTemplateFormatVersion: 2010-09-09  
Description: A sample template  
Resources:  
  MyQueue:  
    Type: 'AWS::SQS::Queue'  
    Properties:  
      RedriveAllowPolicy: '{"redrivePermission":"denyAll"}'  
  

Please let's know if you have any further questions,
Regards,

已回答 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南