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년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠