Jack Fraser
04/20/2021, 8:29 PMauthorizationType using a custom function? Similar to Serverless framework can have custom function for the authorizer .
The reason for this is both for authorisation and to load in extra data onto the event.requestContext.authorizerRoss Coundon
04/20/2021, 8:30 PMFrank
Api or ApiGatewayV1Api ?Jack Fraser
04/20/2021, 8:31 PMFrank
Frank
Jack Fraser
04/20/2021, 8:34 PMFrank
ApiGatewayV1Api does support it. But imo it’s not worth switching to ApiGatewayV1Api just for this.Frank
Frank
Jack Fraser
04/21/2021, 10:26 AMFrank
Api construct?Jack Fraser
04/22/2021, 8:37 AMFrank
Frank
Frank
Jack Fraser
05/17/2021, 5:06 PMFrank
Frank
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",
},
});Frank
Jack Fraser
07/05/2021, 3:30 PMJack Fraser
07/05/2021, 3:32 PMgetFunction etc but a path of another stack?Frank
Frank
getFunction across stacks. Give it a try. Let me know if it doesn’t work for you.