How to set default Lambda Authorizer for API Gateway

0

API Gateway has multiple Lambda Authorizer. I want to set Lambda Authorizer for all Resources(Methods) For that I need to configure Lambda Authorizer for all methods. Is there any configuration which we can do at the global level and applied for all the methods in the API Gateway. This is very helpful when I have 1000s of methods in API Gateway.

Sandip
preguntada hace 3 meses155 visualizaciones
1 Respuesta
1

How are you creating the API Gateway? If you use Serverless Application Model you can define the default parameters for each method (including authentication). At deployment time, it's done for you. There are other defaults too such as the Lambda function language - many more...

From the documentation check out Api (for REST APIs) and HttpApi (for HTTP APIs). Both have an Auth section that lets you specify the default Lambda Authorizer but it can be overriden on a method-by-method basis.

profile pictureAWS
EXPERTO
respondido hace 3 meses
profile pictureAWS
EXPERTO
revisado hace 3 meses
  • Thanks @Brettski-AWS and @Didier_Durand

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