From 8a40f6fa2b58c95c4d432e443fb71331998efccc Mon Sep 17 00:00:00 2001 From: Dan Haughey Date: Wed, 16 Oct 2024 16:50:14 +0100 Subject: [PATCH] fix: error on creating Cognito authorizers for V1 AWS APIs (#1191) Co-authored-by: Frank --- platform/src/components/aws/apigatewayv1-authorizer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/src/components/aws/apigatewayv1-authorizer.ts b/platform/src/components/aws/apigatewayv1-authorizer.ts index 9ef415a80..92e0a64bf 100644 --- a/platform/src/components/aws/apigatewayv1-authorizer.ts +++ b/platform/src/components/aws/apigatewayv1-authorizer.ts @@ -127,7 +127,7 @@ export class ApiGatewayV1Authorizer extends Component { type, name: args.name, providerArns: args.userPools, - authorizerUri: fn!.nodes.function.invokeArn, + authorizerUri: fn?.nodes.function.invokeArn, authorizerResultTtlInSeconds: args.ttl, identitySource: args.identitySource, },