Frank
📢 UpdateIn v0.20.0, you can now use Lambda authorizer with
sst.Api
.
new Api(this, "Api", {
defaultAuthorizationType: ApiAuthorizationType.CUSTOM,
defaultAuthorizer: new HttpLambdaAuthorizer({
authorizerName: "LambdaAuthorizer",
handler: new Function(this, "Authorizer", {
handler: "src/authorizer.main",
}),
}),
routes: {
"GET /notes": "src/list.main",
},
});
More examples here - https://docs.serverless-stack.com/constructs/Api#adding-lambda-authorizationAshishkumar Pandey
05/22/2021, 1:31 PMRoss Coundon
05/22/2021, 1:41 PMRoss Coundon
05/22/2021, 1:42 PMAshishkumar Pandey
05/22/2021, 1:42 PMAshishkumar Pandey
05/22/2021, 1:42 PM