Search code examples
amazon-web-servicesaws-lambdaamazon-sns

SNS trigger issue for Lambda


I have SNS topic in Account A. From this SNS i want to trigger lambda in Account B.

But i am getting below error.I am trying to deploy using cloudformation stack

The account A is not the owner of Endpoint ARNof-lambda-in-accountB (Service: AmazonSNS,Status Code: 403,ErrorCode: Authorizationerror)

Things i make sure

  1. SNS has access correct access policy to subscribe Lambda in Account B
  2. A trigger set for Lambda in Account B for SNS in account A

Solution

  • An SNS subscription must be created from the same account that the Lambda function exists in. The SNS topic policy must allow subscriptions from the Lambda's account.