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!

demandé il y a 2 ans425 vues
1 réponse
0
Réponse acceptée

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,

répondu il y a 2 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions