Skip to content

Commit

Permalink
fix more nodejs14 stragglers
Browse files Browse the repository at this point in the history
  • Loading branch information
robertd committed May 28, 2022
1 parent 33e70d9 commit db9b1a2
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@
"SingletonFunction1488541a7b23466481b69b4408076b81HandlerCD40AE9F": {
"Type": "AWS::Lambda::Function",
"Properties": {
"Runtime": "nodejs14.x",
"Runtime": "nodejs16.x",
"Code": {
"S3Bucket": {
"Ref": "AssetParameters1bc7cf3a01a7153f942391263b3bac937812996cc28f9abaf83ffebbbe03e38bS3BucketF7210344"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class LambdaFunctionProvider extends CoreConstruct {
const handler = new CfnResource(this, 'Handler', {
type: 'AWS::Lambda::Function',
properties: {
Runtime: 'nodejs14.x',
Runtime: 'nodejs16.x',
Code: {
S3Bucket: asset.bucketName,
S3Key: asset.objectKey,
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/integ-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
},
"scripts": {
"build": "cdk-build",
"bundle": "esbuild --bundle lib/assertions/providers/lambda-handler/index.ts --target=node14 --platform=node --external:aws-sdk --outfile=lib/assertions/providers/lambda-handler.bundle/index.js",
"bundle": "esbuild --bundle lib/assertions/providers/lambda-handler/index.ts --target=node16 --platform=node --external:aws-sdk --outfile=lib/assertions/providers/lambda-handler.bundle/index.js",
"lint": "cdk-lint",
"package": "cdk-package",
"awslint": "cdk-awslint",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ test('calls the updateLambdaCode() API when it receives only a code difference i
Code: {
ZipFile: 'exports.handler = () => {return true}',
},
Runtime: 'nodejs14.x',
Runtime: 'nodejs16.x',
FunctionName: 'my-function',
},
},
Expand All @@ -44,7 +44,7 @@ test('calls the updateLambdaCode() API when it receives only a code difference i
Code: {
ZipFile: newCode,
},
Runtime: 'nodejs14.x',
Runtime: 'nodejs16.x',
FunctionName: 'my-function',
},
},
Expand Down

0 comments on commit db9b1a2

Please sign in to comment.