Skip to content
Advertisement

ClientError: An error occurred (InternalFailure) when calling the Publish operation (reached max retries: 4)

I am simply trying to publish to an SNS topic using a lambda function. The function code as follows, with ARN being the actual SNS topic ARN:

JavaScript

The function execution role as access to SNS. In fact I even gave SNS full access. But I keep getting the error:

JavaScript

I do not find any access denied errors in cloudtrail either. Any idea on what is the issue here ?

Edit: Its my bad, I used the subscription ARN instead of the topic ARN causing this issue.

Advertisement

Answer

In case if anyone is facing this issue, make sure you use the correct ARN – use the ARN of the Topic instead of the subscription.

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement