My pair of lambda functions cannot communicate via SNS. One publishes events and the other consumes them.
The first function subscribes to a topic. And I know it works because I can trigger it manually by adding to the topic. The other method is having an issue. It times out while waiting for the publish call to return.
What do I do to allow the publishing function publish to the SNS topic?
My current config looks like this
- Effect: 'Allow'
- - arn
- Ref: AWS::Region
- Ref: AWS::AccountId
description: Receives SNS published events
displayName: My topic
description: Publishes SNS events
- schedule: cron(0 1 * * ? *)
I thought permissions was the issue so I added AdministratorAccess and AmazonSNSFullAccess to the created role. And that didn't help.
My publish method is the following. I know it's working because the topic handler lambda can publish messages back to the same topic and get the lambda launched to handle them with success.