Skip to content

Commit ae9a4ef

Browse files
authored
fix: upgrade lambda runtime version from using 18 (EoL) to 20 (#936)
1 parent 4b48797 commit ae9a4ef

File tree

8 files changed

+104
-104
lines changed

8 files changed

+104
-104
lines changed

packages/cdk-graph-plugin-threat-composer/test/__snapshots__/plugin-integ.test.ts.snap

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/cdk-graph/test/__fixtures__/constructs.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ export class ApiLayer extends Construct {
197197
this.helloHandler = new lambda.Function(this, "HelloHandler", {
198198
code: lambda.Code.fromInline('module.exports.handler = () => "hello";'),
199199
handler: "index.handler",
200-
runtime: lambda.Runtime.NODEJS_18_X,
200+
runtime: lambda.Runtime.NODEJS_20_X,
201201
environment: {
202202
BUCKET: props.bucket.bucketName,
203203
DB: props.db.instanceArn,
@@ -211,7 +211,7 @@ export class ApiLayer extends Construct {
211211
this.worldHandler = new lambda.Function(this, "WorldHandler", {
212212
code: lambda.Code.fromInline('module.exports.handler = () => "world";'),
213213
handler: "index.handler",
214-
runtime: lambda.Runtime.NODEJS_18_X,
214+
runtime: lambda.Runtime.NODEJS_20_X,
215215
});
216216
world.addMethod("GET", new apigateway.LambdaIntegration(this.worldHandler));
217217
}
@@ -235,7 +235,7 @@ export class Website extends Construct {
235235
'module.exports.handler = () => "do something to provide config";'
236236
),
237237
handler: "index.handler",
238-
runtime: lambda.Runtime.NODEJS_14_X,
238+
runtime: lambda.Runtime.NODEJS_20_X,
239239
environment: {
240240
BUCKET_ARN: this.sourceBucket.bucketArn,
241241
BUCKET_NAME: this.sourceBucket.bucketName,
@@ -291,7 +291,7 @@ export class EdgeCases extends Construct {
291291
new lambda.Function(this, "LambdaWithAlias", {
292292
code: lambda.Code.fromInline('module.exports.handler = () => "foobar";'),
293293
handler: "index.handler",
294-
runtime: lambda.Runtime.NODEJS_14_X,
294+
runtime: lambda.Runtime.NODEJS_20_X,
295295
}).addAlias("Test");
296296

297297
// External (imported) resources

packages/cdk-graph/test/__fixtures__/stacks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export class DependentFixtureStack extends Stack {
6363
this.lambda = new lambda.Function(nestedStack, "LambdaFunction", {
6464
code: lambda.Code.fromInline('module.console.log("test")'),
6565
handler: "index.handler",
66-
runtime: lambda.Runtime.NODEJS_14_X,
66+
runtime: lambda.Runtime.NODEJS_20_X,
6767
environment: {
6868
BUCKET_ARN: props.depStack.dataLayer.bucket.bucketArn,
6969
BUCKET_NAME: props.depStack.dataLayer.bucket.bucketName,

packages/static-website/src/cloudfront-web-acl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ export class CloudfrontWebAcl extends Construct {
182182
role: onEventHandlerRole,
183183
functionName: onEventHandlerName,
184184
handler: "index.onEvent",
185-
runtime: Runtime.NODEJS_18_X,
185+
runtime: Runtime.NODEJS_20_X,
186186
timeout: Duration.seconds(300),
187187
}
188188
);

packages/static-website/test/__snapshots__/static-website.test.ts.snap

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/type-safe-api/src/construct/type-safe-rest-api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ export class TypeSafeRestApi extends Construct {
240240
// Create a custom resource for preparing the spec for deployment (adding integrations, authorizers, etc)
241241
const prepareSpec = new LambdaFunction(this, "PrepareSpecHandler", {
242242
handler: "index.handler",
243-
runtime: Runtime.NODEJS_18_X,
243+
runtime: Runtime.NODEJS_20_X,
244244
code: Code.fromAsset(
245245
path.join(__dirname, "./prepare-spec-event-handler")
246246
),

0 commit comments

Comments
 (0)