From b7f9b5f010de67b3010b3e68859f0d93f4156596 Mon Sep 17 00:00:00 2001 From: darwin Date: Mon, 13 Jan 2025 17:03:37 -0500 Subject: [PATCH] fixing public vs private --- servers/fdr-deploy/getdocs-lambda/cdk/getLambdaStack.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/servers/fdr-deploy/getdocs-lambda/cdk/getLambdaStack.ts b/servers/fdr-deploy/getdocs-lambda/cdk/getLambdaStack.ts index f47c40e004..deb06c4715 100644 --- a/servers/fdr-deploy/getdocs-lambda/cdk/getLambdaStack.ts +++ b/servers/fdr-deploy/getdocs-lambda/cdk/getLambdaStack.ts @@ -36,7 +36,7 @@ export class GetDocsLambda extends Construct { // Create the Lambda function this.lambdaFunction = new lambda.Function(this, "get-docs-lambda", { - runtime: lambda.Runtime.NODEJS_18_X, + runtime: lambda.Runtime.NODEJS_20_X, handler: "index.handler", code: lambda.Code.fromAsset(path.join(__dirname, "../dist")), vpc: props.vpc, @@ -49,7 +49,7 @@ export class GetDocsLambda extends Construct { timeout: Duration.seconds(30), memorySize: 256, vpcSubnets: { - subnetType: SubnetType.PRIVATE_WITH_EGRESS, + subnetType: SubnetType.PUBLIC, }, });