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!

gefragt vor 2 Jahren425 Aufrufe
1 Antwort
0
Akzeptierte Antwort

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,

beantwortet vor 2 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen