Modify Queue shortcut SNS behavior
@rclark is already working on this.
Since Apr 12, 2021.
Assessment
This issue has not been assessed yet.
Description
Currently, the Queue shortcut will also create a SNS topic that the created queue is subscribed to, unless one of two conditions are met:
- The queue is a FIFO queue
- An
ExistingTopicArnproperty is specified, in which case the queue will be subscribed to that topic instead
There are two things that could be improved about this behavior:
- In some cases you may not want to send messages via an intermediate SNS topic - it may be fine to just directly send messages to SQS. In that case, it might be nice to skip creation of the SNS topic. This is mostly to prevent unnecessary infrastructure from being created - there's really no cost benefit to this, as you're only charged for message processing with SNS.
- With the recent addition of SNS FIFO topics, you now can subscribe a FIFO queue to an SNS topic, as long as it's a FIFO topic. I'm already aware of one internal use case where this'd be a nice feature to support.
What I'd propose is adding a new property CreateSnsTopic with a default value of true (to prevent a breaking change). If it was set to false, we'd skip creation of the SNS topic. Then instead of ignoring TopicName or ExistingTopicArn if FifoQueue: 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 and CreateSnsTopic is not false.
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.
- Dominant language
- JavaScript
- Stars
- 74
- Forks
- 10
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from mapbox/cloudfriend
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
mapbox/cloudfriend#152 ·
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 35/100
mapbox/cloudfriend#123 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
mapbox/cloudfriend#117 ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
mapbox/cloudfriend#106 · 3 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
mapbox/cloudfriend#87 ·
All issues in mapbox/cloudfriend
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
HarperFast/skills#96 ·
-
[Block] Latest Posts [Type] Bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Automattic/studio#4908 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
sugarlabs/musicblocks#8847 ·