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.

1 Answer
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
EXPERT
answered 3 months ago
profile pictureAWS
EXPERT
reviewed 3 months ago
  • Thanks @Brettski-AWS and @Didier_Durand

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions