Open sylwit opened 6 years ago
Any way around this? I dont really want to plug my sns topics in the lambdas, because there are lots of them.
We need to update the plugin so that when there is a lambda as protocol, appropriate iam permission is also added. Happy for someone to create a PR for this.
I really need it, so I can put some effort to develop this feature. If anybody could help me to figure out the best way, it would be great.
This is a Bug Report
Description
For bug reports:
if you want a notification to call a lambda, the topic doesn't have permission to invoke it
Topic should be able to invoke the lambda defined in notification
No error
For feature proposals:
Similar or dependent issues:
Additional Data
Subscribing a lambda to a topic isn't enough to make it invokable. Topic must also have permission to call lambda. Here are some readings that helped me to figure out the problem https://iangilham.com/2016/03/22/Sns-trigger-lambda-via-cloudformation.html (Permission for the Topic to invoke the Lambda), https://aws.amazon.com/blogs/mobile/invoking-aws-lambda-functions-via-amazon-sns/ (Preparing the Lambda function for invocation)
I was going to make a PR, instead I ended up adding events to my lambda as so: