-
Notifications
You must be signed in to change notification settings - Fork 4.3k
feat(sns-subscriptions): cross-region support for Lambda functions #7679
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
Conversation
Extend the existing cross-region topic subscription for SQS to apply to Lambda. fixes #5734
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
nija-at
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for submitting this PR!
Code itself looks good to me.
Did you happen to check if this actually works, as in CF doesn't complain at the time of deployment, and that a message on a topic in one region actually invokes the function in another?
Yes. I created a SNS topic in eu-west-2 (by hand), built a CDK app with a Lambda function that subscribed to the topic, and deployed it to eu-west-1. Verified it broke prior to the fix, and worked afterward (both deploying correctly, and being able to trigger the Lambda via the topic). |
|
What service principle is used when adding permissions for sns from cloudformation? This may be a future issue to add but cross-region in newer regions (ap-east-1, me-south-1, af-south-1, eu-south-1, etc.), I'm unsure if the overarching service principle (e.g. sns.amazonaws.com) works and I think you need to use regionalized SP. This isn't a problem in same-region so it wouldn't need to be addressed. |
|
Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
|
Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
Commit Message
feat(sns-subscriptions) cross-region support for Lambda functions (#7679)
fixes #5734
End Commit Message
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license