-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SQS - Unknown Attribute FifoQueue when setting fifo to false in Queue Props #8550
Comments
Hey there. Looks like this is a known issue with cloudformation. They have an issue in their roadmap for it. We can potentially perform some logic inside of the construct to pass That is exactly what you're workaround is doing but one level higher. Anyone else encountering this can do that as well in the meantime. |
I've just bumped into this issue as well. It would make a lot of sense to reflect this in the docs. |
experience same |
bump - also ran into this issue |
bump - same issue, in python 3.7 using: self._queue=sqs.Queue(
scope,
QUEUE_ID_PREFIX + name,
fifo=True if FIFO_ENABLED else None,
removal_policy=REMOVAL_POLICY
) fixed this for me. |
same, Python 3.9 |
Had the same issue, python 3.9, still unclear that it needs None |
Seeing this as well in typescript. |
Seeing this as well. The documentation is literally incorrect in claiming that FifoQueue is boolean. |
Same issue when |
Just encountered this in CDK v2 using Typescript. Agree with comments elsewhere in the thread - update docs and/or make this an enum of |
Also ran into this in CDK v2 Typescript. Not exactly the same issue since my FifoQueue is currently always |
Hello. Saw the same issue here and yeah removing the property helps, but still confusing |
This issue has received a significant amount of attention so we are automatically upgrading its priority. A member of the community will see the re-prioritization and provide an update on the issue. |
It appears this issue has moved to |
Workaround in Typescript CDK
|
Any movement on this? |
Bump, same issue. Fixed using @ParallelPlatypus's method (thank you!) |
Bump, had to remove the property |
This is still an issue. imo it should not accept undefined at all, but I guess now that people are required to use it it should be marked as deprecated and only accept true/false after few versions.
or even better: make it work like other constructs by allowing only boolean values and adjust documentation accordingly. in the meantime I added function that i can call to hide the inconsistency. function fixCDKBooleanLogic(isValueTrue: boolean): boolean | undefined { and calling it from sqs construct, where props.fifotype is boolean value. |
The `FifoQueue` property in CloudFormation can only be `true`, or must be absent. Make it so that a `fifo: false` configuration doesn't output FifoQueue at all. Closes #8550.
Comments on closed issues and PRs are hard for our team to see. |
1 similar comment
Comments on closed issues and PRs are hard for our team to see. |
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.
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
Other
I found a similar issue report here: AWS PHP SDK Github issue
This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered: