I have two AWS accounts, Account 1 has lambda, and Account 2 has an SNS which will trigger a lambda function in the same account.
Now I want to trigger the SNS in Account 2 from the lambda function in Account 1. I'm not sure how to create a trust relationship between those accounts for the respective services.
Any lead is highly appreciated.
One way to do that would be:
Account B (with SNS topic)
Add the following statement to SNS topic policy:
Account A (with lambda)
Add the following statement to lambda execution role: