Skip to content

Commit 85f4e29

Browse files
authored
fix(lambda): Fix typo in public subnet warning (#20470)
---- ### All Submissions: * [ ] Have you followed the guidelines in our [Contributing guide?](https://github.com/aws/aws-cdk/blob/master/CONTRIBUTING.md) ### Adding new Unconventional Dependencies: * [ ] This PR adds new unconventional dependencies following the process described [here](https://github.com/aws/aws-cdk/blob/master/CONTRIBUTING.md/#adding-new-unconventional-dependencies) ### New Features * [ ] Have you added the new feature to an [integration test](https://github.com/aws/aws-cdk/blob/master/INTEGRATION_TESTS.md)? * [ ] Did you use `yarn integ` to deploy the infrastructure and generate the snapshot (i.e. `yarn integ` without `--dry-run`)? *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent 0a49927 commit 85f4e29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/@aws-cdk/aws-lambda/lib/function.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1115,7 +1115,7 @@ Environment variables can be marked for removal when used in Lambda@Edge by sett
11151115
for (const subnetId of subnetIds) {
11161116
if (publicSubnetIds.has(subnetId) && !allowPublicSubnet) {
11171117
throw new Error('Lambda Functions in a public subnet can NOT access the internet. ' +
1118-
'If you are aware of this limitation and would still like to place the function int a public subnet, set `allowPublicSubnet` to true');
1118+
'If you are aware of this limitation and would still like to place the function in a public subnet, set `allowPublicSubnet` to true');
11191119
}
11201120
}
11211121

0 commit comments

Comments
 (0)