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
preguntada hace 24 días147 visualizaciones
2 Respuestas
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
EXPERTO
GK
respondido hace 24 días
0

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

profile pictureAWS
EXPERTO
Uri
respondido hace 24 días

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas