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.

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
답변함 한 달 전
0

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

profile pictureAWS
전문가
Uri
답변함 한 달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠