Skip to content

Commit

Permalink
Merge pull request #426 from guardian/aa/gucdk-53.0.0
Browse files Browse the repository at this point in the history
chore: Update Lambda runtime to Node 20
  • Loading branch information
akash1810 authored Jan 15, 2024
2 parents aa395e0 + e7e97bc commit 5bb334c
Show file tree
Hide file tree
Showing 5 changed files with 2,055 additions and 141 deletions.
4 changes: 2 additions & 2 deletions cdk/bin/cdk.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'source-map-support/register';
import { GuRootExperimental } from '@guardian/cdk/lib/experimental/constructs/root';
import { GuRoot } from "@guardian/cdk/lib/constructs/root";
import { CdkPlayground } from '../lib/cdk-playground';

const app = new GuRootExperimental();
const app = new GuRoot();
new CdkPlayground(app, 'CdkPlayground');
5 changes: 4 additions & 1 deletion cdk/lib/__snapshots__/cdk-playground.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -821,7 +821,7 @@ Object {
"Arn",
],
},
"Runtime": "nodejs16.x",
"Runtime": "nodejs20.x",
"Tags": Array [
Object {
"Key": "App",
Expand Down Expand Up @@ -1425,6 +1425,9 @@ Object {
"Type": "AWS::ApiGateway::Resource",
},
"playgroundPRODcdkplayground7B64111F": Object {
"DependsOn": Array [
"InstanceRoleCdkplaygroundC280027A",
],
"Properties": Object {
"LaunchTemplateData": Object {
"IamInstanceProfile": Object {
Expand Down
2 changes: 1 addition & 1 deletion cdk/lib/cdk-playground.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export class CdkPlayground extends GuStack {
const lambda = new GuApiLambda(this, 'lambda', {
fileName: `cdk-playground-lambda.zip`,
handler: 'handler.main',
runtime: Runtime.NODEJS_16_X,
runtime: Runtime.NODEJS_20_X,
monitoringConfiguration: {
noMonitoring: true,
},
Expand Down
Loading

0 comments on commit 5bb334c

Please sign in to comment.