-
Notifications
You must be signed in to change notification settings - Fork 4.5k
SQS - Unknown Attribute FifoQueue when setting fifo to false in Queue Props #8550
Copy link
Copy link
Closed
Labels
@aws-cdk/aws-sqsRelated to Amazon Simple Queue ServiceRelated to Amazon Simple Queue ServiceblockedWork is blocked on this issue for this codebase. Other labels or comments may indicate why.Work is blocked on this issue for this codebase. Other labels or comments may indicate why.bugThis issue is a bug.This issue is a bug.needs-cfnThis issue is waiting on changes to CloudFormation before it can be addressed.This issue is waiting on changes to CloudFormation before it can be addressed.p2
Description
Setting fifo to false in QueueProps when creating an SQS queue causes the deploy to fail.
Reproduction Steps
This is the code used to create the queue. It is part of a reusable component, I have made a workaround of only setting the fifo prop if it is set to true and everything works as expected.
return new sqs.Queue(stack, name, {
encryption: encrypted ? sqs.QueueEncryption.KMS_MANAGED : sqs.QueueEncryption.UNENCRYPTED,
fifo,
queueName: name,
retentionPeriod,
visibilityTimeout
});
Error Log
This error shows up under CloudFormation events as the reason why creating the queue failed.
Unknown Attribute FifoQueue. (Service: AmazonSQS; Status Code: 400; Error Code: InvalidAttributeName; Request ID: <REQUEST_ID>)
Environment
- CLI Version : 1.45.0
- Framework Version: 1.45.0
- Node.js Version: v14.3.0
- OS : macOS Catalina v10.15.15
- Language (Version): TypeScript (^3.9.5)
Other
I found a similar issue report here: AWS PHP SDK Github issue
This is 🐛 Bug Report
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
@aws-cdk/aws-sqsRelated to Amazon Simple Queue ServiceRelated to Amazon Simple Queue ServiceblockedWork is blocked on this issue for this codebase. Other labels or comments may indicate why.Work is blocked on this issue for this codebase. Other labels or comments may indicate why.bugThis issue is a bug.This issue is a bug.needs-cfnThis issue is waiting on changes to CloudFormation before it can be addressed.This issue is waiting on changes to CloudFormation before it can be addressed.p2