From cb6c4a817d9696a164e05b5d16f0300f0270f2a7 Mon Sep 17 00:00:00 2001 From: Steve Date: Mon, 23 May 2022 22:39:27 -0500 Subject: [PATCH] fix(lambda): Fix typo in public subnet warning --- packages/@aws-cdk/aws-lambda/lib/function.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/@aws-cdk/aws-lambda/lib/function.ts b/packages/@aws-cdk/aws-lambda/lib/function.ts index 68002c22c5b4b..8588aff8d9963 100644 --- a/packages/@aws-cdk/aws-lambda/lib/function.ts +++ b/packages/@aws-cdk/aws-lambda/lib/function.ts @@ -1115,7 +1115,7 @@ Environment variables can be marked for removal when used in Lambda@Edge by sett for (const subnetId of subnetIds) { if (publicSubnetIds.has(subnetId) && !allowPublicSubnet) { throw new Error('Lambda Functions in a public subnet can NOT access the internet. ' + - 'If you are aware of this limitation and would still like to place the function int a public subnet, set `allowPublicSubnet` to true'); + 'If you are aware of this limitation and would still like to place the function in a public subnet, set `allowPublicSubnet` to true'); } }