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
已提問 3 個月前檢視次數 155 次
1 個回答
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
專家
已回答 3 個月前
profile pictureAWS
專家
已審閱 3 個月前
  • Thanks @Brettski-AWS and @Didier_Durand

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南