aws-lambdaaws-api-gatewaylambda-authorizer

lambda authorizer is not invoked


I have implemented a lambda authorizer and integrated it with a lambda proxy integration on the API Gateway.

When I test the authorizer from the API Gateway it works fine, however when I try to invoke the endpoints, on the second lambda, from Postman, the request seems to skip the authorizer and hits directly the second lambda.

enter image description here

I tried also to use the authorizer not only on the API level but also for every method in the API, but that didn't help either. enter image description here


Solution

  • Since your Authorization is cached for 5 minutes, it does not invoke the authorizer every time you call your API.