Skip to content
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

feat: allow any topic arn #28

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

yellowcap
Copy link

@yellowcap yellowcap commented Jun 30, 2022

The proposed changes allow subscribing external SNS topics that are in different regions and from different accounts.

The main conceptual difference is to use listSubscriptions instead of listSubscriptionsByTopic. Listib by topic is only allowed for topics that are owned by the user.

There is one breaking change: to support topics that are in other regions and other accounts, the input is required to be a full SNS ARN. So only providing the topic name will not work with the current implementation. I think declaring the full arn is good practice even for topics that are owned by the user.

I have not yet added tests, but have used this version in my use-case successfully. So it works, but might need some updates on the tests. However, I wanted to get your feedback before polishing

@yellowcap yellowcap force-pushed the allow-non-owned-sns-signals branch from cabe673 to da57fd8 Compare July 7, 2022 08:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant