User: anonymous is not authorized to perform: execute-api:Invoke

0

Why can i have this problem? {"Message":"User: anonymous is not authorized to perform: execute-api:Invoke on resource: arn:aws:execute-api:us-east-2:********} im trying to invoke lambda using apigtw as a trigger?

2 Answers
1
Accepted Answer

Hi,
You need to check your api gateway resource policy[1]: select API ->Resource policy.
Note: you need to redeploy your apigateway after modifing your resource policy.
https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-resource-policies.html

profile picture
answered 3 months ago
0

Thank you!

Oksana
answered 3 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions