Lambda not getting triggered for API call

0

On hitting APIs, authorizer lambda is triggered and responds with Success/Allow but main lambda is not triggered to complete the API call. Response of Authorizer:{ Version: '2012-10-17', Statement: [ { Action: 'execute-api:Invoke', Effect: 'Allow', Resource: '<<arn>>/api/POST/audit/postaudit' } ] }

The same code is deployed through Gitlab CI in different branches, some branche APIs are working fine while other branches having above error.

Prince
已提问 1 个月前155 查看次数
2 回答
0

Hi

Lets try debugging:

  • Ensure the main Lambda is still integrated with the API method in API Gateway. Test it directly using a sample event. Link refrence
  • Enable the Logging on the API GW to see what happening about the triggering. Enable Logging on API GW
  • Check your GitLab CI pipeline for deployment discrepancies. Check GitLab CI for deployment differences.
  • Review authorizer policy and CORS settings.
profile picture
专家
GK
已回答 1 个月前
0

Make sure that the Lambda function's resource policy allows API Gateway to invoke it.

profile pictureAWS
专家
Uri
已回答 1 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则