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!

feita há 2 anos425 visualizações
1 Resposta
0
Resposta aceita

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,

respondido há 2 anos

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas