-
Notifications
You must be signed in to change notification settings - Fork 9
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
Modify Queue shortcut SNS behavior #125
Comments
We'd be trading this off for
Right? I wonder if what we really need is a breaking change. |
A breaking changes might make the interface a bit clearer, yeah. So if you're willing to allow that, we can go that route. In that case, would it make sense to change the behavior to:
❓ |
Meant |
Found another reason this behavior is somewhat problematic today - the |
Currently, the Queue shortcut will also create a SNS topic that the created queue is subscribed to, unless one of two conditions are met:
ExistingTopicArn
property is specified, in which case the queue will be subscribed to that topic insteadThere are two things that could be improved about this behavior:
What I'd propose is adding a new property
CreateSnsTopic
with a default value oftrue
(to prevent a breaking change). If it was set tofalse
, we'd skip creation of the SNS topic. Then instead of ignoringTopicName
orExistingTopicArn
ifFifoQueue: true
, we should accept an existing topic ARN (and let CloudFormation validate that it's a FIFO topic), or create a FIFO Topic if it's not andCreateSnsTopic
is notfalse
.Priority
Not super high, as there are workarounds to both of these, and as I said, even if you don't use the Topic that's created, it doesn't really cost you anything.
The text was updated successfully, but these errors were encountered: