diff --git a/packages/cdk-blue-green-container-deployment/src/ecs-deployment-group.ts b/packages/cdk-blue-green-container-deployment/src/ecs-deployment-group.ts index 14de4dad..698f6af6 100644 --- a/packages/cdk-blue-green-container-deployment/src/ecs-deployment-group.ts +++ b/packages/cdk-blue-green-container-deployment/src/ecs-deployment-group.ts @@ -129,7 +129,7 @@ export class EcsDeploymentGroup extends Resource implements IEcsDeploymentGroup, } const serviceToken = new Function(this, 'Function', { - runtime: Runtime.NODEJS_16_X, + runtime: Runtime.NODEJS_18_X, code: Code.fromAsset(path.join(__dirname, 'lambdas', 'ecs-deployment-group')), handler: 'index.handler', timeout: Duration.minutes(15), diff --git a/packages/cdk-blue-green-container-deployment/src/ecs-service.ts b/packages/cdk-blue-green-container-deployment/src/ecs-service.ts index 5a1802fb..03109d7b 100644 --- a/packages/cdk-blue-green-container-deployment/src/ecs-service.ts +++ b/packages/cdk-blue-green-container-deployment/src/ecs-service.ts @@ -103,7 +103,7 @@ export class EcsService extends Construct implements IConnectable, IEcsService, ]; const serviceToken = new Function(this, 'Function', { - runtime: Runtime.NODEJS_16_X, + runtime: Runtime.NODEJS_18_X, code: Code.fromAsset(path.join(__dirname, 'lambdas', 'ecs-service')), handler: 'index.handler', timeout: Duration.minutes(15), diff --git a/packages/cdk-chatops/src/msteams-incoming-webhook-configuration.ts b/packages/cdk-chatops/src/msteams-incoming-webhook-configuration.ts index b864801b..f0b4615c 100644 --- a/packages/cdk-chatops/src/msteams-incoming-webhook-configuration.ts +++ b/packages/cdk-chatops/src/msteams-incoming-webhook-configuration.ts @@ -36,7 +36,7 @@ export class MSTeamsIncomingWebhookConfiguration extends Construct { super(scope, id); this.incomingWebhook = new Function(this, 'Function', { - runtime: Runtime.NODEJS_16_X, + runtime: Runtime.NODEJS_18_X, code: Code.fromAsset(path.join(__dirname, 'lambdas', 'msteams-incoming-webhook')), handler: 'index.handler', environment: { diff --git a/packages/cdk-cloudfront-authorization/src/__tests__/__snapshots__/authorizations.test.ts.snap b/packages/cdk-cloudfront-authorization/src/__tests__/__snapshots__/authorizations.test.ts.snap index 39141fc7..474d5a6b 100644 --- a/packages/cdk-cloudfront-authorization/src/__tests__/__snapshots__/authorizations.test.ts.snap +++ b/packages/cdk-cloudfront-authorization/src/__tests__/__snapshots__/authorizations.test.ts.snap @@ -66,7 +66,7 @@ Object { "Arn", ], }, - "Runtime": "nodejs16.x", + "Runtime": "nodejs18.x", "Timeout": 300, }, "Type": "AWS::Lambda::Function", @@ -183,7 +183,7 @@ Object { "Arn", ], }, - "Runtime": "nodejs16.x", + "Runtime": "nodejs18.x", }, "Type": "AWS::Lambda::Function", }, @@ -232,7 +232,7 @@ Object { "Arn", ], }, - "Runtime": "nodejs16.x", + "Runtime": "nodejs18.x", }, "Type": "AWS::Lambda::Function", }, @@ -1043,7 +1043,7 @@ Object { "Arn", ], }, - "Runtime": "nodejs16.x", + "Runtime": "nodejs18.x", "Timeout": 300, }, "Type": "AWS::Lambda::Function", @@ -1160,7 +1160,7 @@ Object { "Arn", ], }, - "Runtime": "nodejs16.x", + "Runtime": "nodejs18.x", }, "Type": "AWS::Lambda::Function", }, @@ -1209,7 +1209,7 @@ Object { "Arn", ], }, - "Runtime": "nodejs16.x", + "Runtime": "nodejs18.x", }, "Type": "AWS::Lambda::Function", }, diff --git a/packages/cdk-cloudfront-authorization/src/__tests__/__snapshots__/distributions.test.ts.snap b/packages/cdk-cloudfront-authorization/src/__tests__/__snapshots__/distributions.test.ts.snap index fcea8923..2e2e698e 100644 --- a/packages/cdk-cloudfront-authorization/src/__tests__/__snapshots__/distributions.test.ts.snap +++ b/packages/cdk-cloudfront-authorization/src/__tests__/__snapshots__/distributions.test.ts.snap @@ -119,7 +119,7 @@ Object { "Arn", ], }, - "Runtime": "nodejs16.x", + "Runtime": "nodejs18.x", "Timeout": 300, }, "Type": "AWS::Lambda::Function", @@ -236,7 +236,7 @@ Object { "Arn", ], }, - "Runtime": "nodejs16.x", + "Runtime": "nodejs18.x", }, "Type": "AWS::Lambda::Function", }, @@ -285,7 +285,7 @@ Object { "Arn", ], }, - "Runtime": "nodejs16.x", + "Runtime": "nodejs18.x", }, "Type": "AWS::Lambda::Function", }, @@ -1506,7 +1506,7 @@ Object { "Arn", ], }, - "Runtime": "nodejs16.x", + "Runtime": "nodejs18.x", "Timeout": 300, }, "Type": "AWS::Lambda::Function", @@ -1623,7 +1623,7 @@ Object { "Arn", ], }, - "Runtime": "nodejs16.x", + "Runtime": "nodejs18.x", }, "Type": "AWS::Lambda::Function", }, @@ -1672,7 +1672,7 @@ Object { "Arn", ], }, - "Runtime": "nodejs16.x", + "Runtime": "nodejs18.x", }, "Type": "AWS::Lambda::Function", }, diff --git a/packages/cdk-cloudfront-authorization/src/secret-generator.ts b/packages/cdk-cloudfront-authorization/src/secret-generator.ts index 3f47e601..dc17747c 100644 --- a/packages/cdk-cloudfront-authorization/src/secret-generator.ts +++ b/packages/cdk-cloudfront-authorization/src/secret-generator.ts @@ -15,7 +15,7 @@ export class SecretGenerator extends Construct { const secretGenerator = new aws_lambda.SingletonFunction(this, 'Function', { uuid: 'cloudcomponents-cdk-cloudfront-authorization-secret-generator', - runtime: aws_lambda.Runtime.NODEJS_16_X, + runtime: aws_lambda.Runtime.NODEJS_18_X, handler: 'index.handler', code: aws_lambda.Code.fromAsset(path.join(__dirname, 'lambdas', 'secret-generator')), }); diff --git a/packages/cdk-cloudfront-authorization/src/user-pool-domain.ts b/packages/cdk-cloudfront-authorization/src/user-pool-domain.ts index d634fe8b..c1e55d78 100644 --- a/packages/cdk-cloudfront-authorization/src/user-pool-domain.ts +++ b/packages/cdk-cloudfront-authorization/src/user-pool-domain.ts @@ -14,7 +14,7 @@ export class UserPoolDomain extends Construct { const secretGenerator = new aws_lambda.SingletonFunction(this, 'Function', { uuid: 'cloudcomponents-cdk-cloudfront-authorization-user-pool-domain', - runtime: aws_lambda.Runtime.NODEJS_16_X, + runtime: aws_lambda.Runtime.NODEJS_18_X, handler: 'index.handler', code: aws_lambda.Code.fromAsset(path.join(__dirname, 'lambdas', 'user-pool-domain')), }); diff --git a/packages/cdk-codepipeline-check-parameter-action/src/__tests__/__snapshots__/codepipeline-check-email-parameter-action.test.ts.snap b/packages/cdk-codepipeline-check-parameter-action/src/__tests__/__snapshots__/codepipeline-check-email-parameter-action.test.ts.snap index 3151c1d5..c3269f21 100644 --- a/packages/cdk-codepipeline-check-parameter-action/src/__tests__/__snapshots__/codepipeline-check-email-parameter-action.test.ts.snap +++ b/packages/cdk-codepipeline-check-parameter-action/src/__tests__/__snapshots__/codepipeline-check-email-parameter-action.test.ts.snap @@ -236,7 +236,7 @@ Object { "Arn", ], }, - "Runtime": "nodejs16.x", + "Runtime": "nodejs18.x", }, "Type": "AWS::Lambda::Function", }, diff --git a/packages/cdk-codepipeline-check-parameter-action/src/__tests__/__snapshots__/codepipeline-check-parameter-action.test.ts.snap b/packages/cdk-codepipeline-check-parameter-action/src/__tests__/__snapshots__/codepipeline-check-parameter-action.test.ts.snap index 06a69c06..a77ddb15 100644 --- a/packages/cdk-codepipeline-check-parameter-action/src/__tests__/__snapshots__/codepipeline-check-parameter-action.test.ts.snap +++ b/packages/cdk-codepipeline-check-parameter-action/src/__tests__/__snapshots__/codepipeline-check-parameter-action.test.ts.snap @@ -236,7 +236,7 @@ Object { "Arn", ], }, - "Runtime": "nodejs16.x", + "Runtime": "nodejs18.x", }, "Type": "AWS::Lambda::Function", }, @@ -999,7 +999,7 @@ Object { "Arn", ], }, - "Runtime": "nodejs16.x", + "Runtime": "nodejs18.x", }, "Type": "AWS::Lambda::Function", }, @@ -1159,7 +1159,7 @@ Object { "Arn", ], }, - "Runtime": "nodejs16.x", + "Runtime": "nodejs18.x", }, "Type": "AWS::Lambda::Function", }, @@ -1909,7 +1909,7 @@ Object { "Arn", ], }, - "Runtime": "nodejs16.x", + "Runtime": "nodejs18.x", }, "Type": "AWS::Lambda::Function", }, diff --git a/packages/cdk-codepipeline-check-parameter-action/src/check-parameter-function.ts b/packages/cdk-codepipeline-check-parameter-action/src/check-parameter-function.ts index 0a26127d..0dd865c6 100644 --- a/packages/cdk-codepipeline-check-parameter-action/src/check-parameter-function.ts +++ b/packages/cdk-codepipeline-check-parameter-action/src/check-parameter-function.ts @@ -19,7 +19,7 @@ export interface CheckParamterFunctionProps { export class CheckParameterFunction extends Function { constructor(scope: Construct, id: string, props: CheckParamterFunctionProps) { super(scope, id, { - runtime: Runtime.NODEJS_16_X, + runtime: Runtime.NODEJS_18_X, handler: 'index.handler', code: Code.fromAsset(path.join(__dirname, 'lambdas', 'check-parameter')), }); diff --git a/packages/cdk-codepipeline-merge-action/src/__tests__/__snapshots__/codepipeline-merge-action.test.ts.snap b/packages/cdk-codepipeline-merge-action/src/__tests__/__snapshots__/codepipeline-merge-action.test.ts.snap index af371096..27fdddf7 100644 --- a/packages/cdk-codepipeline-merge-action/src/__tests__/__snapshots__/codepipeline-merge-action.test.ts.snap +++ b/packages/cdk-codepipeline-merge-action/src/__tests__/__snapshots__/codepipeline-merge-action.test.ts.snap @@ -373,7 +373,7 @@ Object { "Arn", ], }, - "Runtime": "nodejs16.x", + "Runtime": "nodejs18.x", }, "Type": "AWS::Lambda::Function", }, diff --git a/packages/cdk-codepipeline-merge-action/src/merge-branches-function.ts b/packages/cdk-codepipeline-merge-action/src/merge-branches-function.ts index ff8ded54..0362421b 100644 --- a/packages/cdk-codepipeline-merge-action/src/merge-branches-function.ts +++ b/packages/cdk-codepipeline-merge-action/src/merge-branches-function.ts @@ -19,7 +19,7 @@ export interface MergeBranchesFunctionProps { export class MergeBranchesFunction extends Function { constructor(scope: Construct, id: string, props: MergeBranchesFunctionProps) { super(scope, id, { - runtime: Runtime.NODEJS_16_X, + runtime: Runtime.NODEJS_18_X, handler: 'index.handler', code: Code.fromAsset(path.join(__dirname, 'lambdas', 'merge-branches')), }); diff --git a/packages/cdk-codepipeline-slack/src/__tests__/__snapshots__/slack-approval-action.test.ts.snap b/packages/cdk-codepipeline-slack/src/__tests__/__snapshots__/slack-approval-action.test.ts.snap index 074ead53..b43cc8a7 100644 --- a/packages/cdk-codepipeline-slack/src/__tests__/__snapshots__/slack-approval-action.test.ts.snap +++ b/packages/cdk-codepipeline-slack/src/__tests__/__snapshots__/slack-approval-action.test.ts.snap @@ -350,7 +350,7 @@ Object { "Arn", ], }, - "Runtime": "nodejs16.x", + "Runtime": "nodejs18.x", }, "Type": "AWS::Lambda::Function", }, @@ -467,7 +467,7 @@ Object { "Arn", ], }, - "Runtime": "nodejs16.x", + "Runtime": "nodejs18.x", }, "Type": "AWS::Lambda::Function", }, @@ -1158,7 +1158,7 @@ Object { "Arn", ], }, - "Runtime": "nodejs16.x", + "Runtime": "nodejs18.x", }, "Type": "AWS::Lambda::Function", }, @@ -1275,7 +1275,7 @@ Object { "Arn", ], }, - "Runtime": "nodejs16.x", + "Runtime": "nodejs18.x", }, "Type": "AWS::Lambda::Function", }, diff --git a/packages/cdk-codepipeline-slack/src/slack-approval-action.ts b/packages/cdk-codepipeline-slack/src/slack-approval-action.ts index eec3ee15..a7e43cd8 100644 --- a/packages/cdk-codepipeline-slack/src/slack-approval-action.ts +++ b/packages/cdk-codepipeline-slack/src/slack-approval-action.ts @@ -63,7 +63,7 @@ export class SlackApprovalAction extends Action { } const approvalRequester = new Function(scope, 'SlackApprovalRequesterFunction', { - runtime: Runtime.NODEJS_16_X, + runtime: Runtime.NODEJS_18_X, handler: 'index.handler', code: Code.fromAsset(path.join(__dirname, 'lambdas', 'approval-requester')), environment, @@ -74,7 +74,7 @@ export class SlackApprovalAction extends Action { topic.addSubscription(new LambdaSubscription(approvalRequester)); const approvalHandler = new Function(scope, 'SlackApprovalHandlerFunction', { - runtime: Runtime.NODEJS_16_X, + runtime: Runtime.NODEJS_18_X, handler: 'index.handler', code: Code.fromAsset(path.join(__dirname, 'lambdas', 'approval-handler')), environment, diff --git a/packages/cdk-codepipeline-slack/src/slack-notifier.ts b/packages/cdk-codepipeline-slack/src/slack-notifier.ts index 22bb8319..458c91fe 100644 --- a/packages/cdk-codepipeline-slack/src/slack-notifier.ts +++ b/packages/cdk-codepipeline-slack/src/slack-notifier.ts @@ -46,7 +46,7 @@ export class SlackNotifier extends Construct { } const notifier = new Function(scope, 'SlackNotifierFunction', { - runtime: Runtime.NODEJS_16_X, + runtime: Runtime.NODEJS_18_X, handler: 'index.handler', code: Code.fromAsset(path.join(__dirname, 'lambdas', 'notifier')), environment: this.environment, diff --git a/packages/cdk-container-registry/src/__tests__/__snapshots__/image-repository.test.ts.snap b/packages/cdk-container-registry/src/__tests__/__snapshots__/image-repository.test.ts.snap index 2ce3e470..eeecc70a 100644 --- a/packages/cdk-container-registry/src/__tests__/__snapshots__/image-repository.test.ts.snap +++ b/packages/cdk-container-registry/src/__tests__/__snapshots__/image-repository.test.ts.snap @@ -165,7 +165,7 @@ Object { "Arn", ], }, - "Runtime": "nodejs16.x", + "Runtime": "nodejs18.x", }, "Type": "AWS::Lambda::Function", }, diff --git a/packages/cdk-container-registry/src/image-repository.ts b/packages/cdk-container-registry/src/image-repository.ts index 6dcf48d8..a1fe9285 100644 --- a/packages/cdk-container-registry/src/image-repository.ts +++ b/packages/cdk-container-registry/src/image-repository.ts @@ -66,7 +66,7 @@ export class ImageRepository extends Repository { const rule = this.onImageScanCompleted(id, { imageTags }); const severityFilter = new Function(this, 'SevierityFilter', { - runtime: Runtime.NODEJS_16_X, + runtime: Runtime.NODEJS_18_X, code: Code.fromAsset(path.join(__dirname, 'lambdas', 'severity-filter')), handler: 'index.handler', }); diff --git a/packages/cdk-contentful-webhook/src/__tests__/__snapshots__/contentful-webhook.test.ts.snap b/packages/cdk-contentful-webhook/src/__tests__/__snapshots__/contentful-webhook.test.ts.snap index 0adbf67f..6f23dc72 100644 --- a/packages/cdk-contentful-webhook/src/__tests__/__snapshots__/contentful-webhook.test.ts.snap +++ b/packages/cdk-contentful-webhook/src/__tests__/__snapshots__/contentful-webhook.test.ts.snap @@ -39,7 +39,7 @@ Object { "Arn", ], }, - "Runtime": "nodejs16.x", + "Runtime": "nodejs18.x", "Timeout": 900, }, "Type": "AWS::Lambda::Function", diff --git a/packages/cdk-contentful-webhook/src/contentful-webhook.ts b/packages/cdk-contentful-webhook/src/contentful-webhook.ts index 4ba8207b..a5bfc260 100644 --- a/packages/cdk-contentful-webhook/src/contentful-webhook.ts +++ b/packages/cdk-contentful-webhook/src/contentful-webhook.ts @@ -20,7 +20,7 @@ export class ContentfulWebhook extends Construct { const handler = new aws_lambda.SingletonFunction(this, 'CustomResourceHandler', { uuid: '91f2075f-b950-4743-a66b-ee0f6febf50d', - runtime: aws_lambda.Runtime.NODEJS_16_X, + runtime: aws_lambda.Runtime.NODEJS_18_X, code: aws_lambda.Code.fromAsset(path.join(__dirname, 'lambdas', 'contentful-webhook')), handler: 'index.handler', lambdaPurpose: 'Custom::ContentfulWebhook', diff --git a/packages/cdk-deletable-bucket/src/__tests__/__snapshots__/deletable-bucket.test.ts.snap b/packages/cdk-deletable-bucket/src/__tests__/__snapshots__/deletable-bucket.test.ts.snap index 0f80258e..406905fd 100644 --- a/packages/cdk-deletable-bucket/src/__tests__/__snapshots__/deletable-bucket.test.ts.snap +++ b/packages/cdk-deletable-bucket/src/__tests__/__snapshots__/deletable-bucket.test.ts.snap @@ -153,7 +153,7 @@ Object { "Arn", ], }, - "Runtime": "nodejs16.x", + "Runtime": "nodejs18.x", "Timeout": 900, }, "Type": "AWS::Lambda::Function", diff --git a/packages/cdk-deletable-bucket/src/empty-bucket.ts b/packages/cdk-deletable-bucket/src/empty-bucket.ts index c077d9a6..bb1eb0c1 100644 --- a/packages/cdk-deletable-bucket/src/empty-bucket.ts +++ b/packages/cdk-deletable-bucket/src/empty-bucket.ts @@ -16,7 +16,7 @@ export class EmptyBucket extends Construct { const onEvent = new SingletonFunction(this, 'EmptyBucketFunction', { code: Code.fromAsset(path.join(__dirname, 'lambdas', 'empty-bucket')), handler: 'index.handler', - runtime: Runtime.NODEJS_16_X, + runtime: Runtime.NODEJS_18_X, uuid: 'CloudcomponentsEmptyBucketCustomResource', timeout: Duration.minutes(15), }); diff --git a/packages/cdk-dynamodb-seeder/src/__tests__/__snapshots__/dynamodb-seeder.test.ts.snap b/packages/cdk-dynamodb-seeder/src/__tests__/__snapshots__/dynamodb-seeder.test.ts.snap index dc447833..66378522 100644 --- a/packages/cdk-dynamodb-seeder/src/__tests__/__snapshots__/dynamodb-seeder.test.ts.snap +++ b/packages/cdk-dynamodb-seeder/src/__tests__/__snapshots__/dynamodb-seeder.test.ts.snap @@ -22,7 +22,7 @@ Object { "Arn", ], }, - "Runtime": "nodejs16.x", + "Runtime": "nodejs18.x", "Timeout": 900, }, "Type": "AWS::Lambda::Function", @@ -169,7 +169,7 @@ Object { "Arn", ], }, - "Runtime": "nodejs16.x", + "Runtime": "nodejs18.x", "Timeout": 900, }, "Type": "AWS::Lambda::Function", @@ -363,7 +363,7 @@ Object { "Arn", ], }, - "Runtime": "nodejs16.x", + "Runtime": "nodejs18.x", "Timeout": 900, }, "Type": "AWS::Lambda::Function", @@ -493,7 +493,7 @@ Object { "Arn", ], }, - "Runtime": "nodejs16.x", + "Runtime": "nodejs18.x", "Timeout": 900, }, "Type": "AWS::Lambda::Function", @@ -646,7 +646,7 @@ Object { "Arn", ], }, - "Runtime": "nodejs16.x", + "Runtime": "nodejs18.x", "Timeout": 900, }, "Type": "AWS::Lambda::Function", diff --git a/packages/cdk-dynamodb-seeder/src/dynamodb-seeder.ts b/packages/cdk-dynamodb-seeder/src/dynamodb-seeder.ts index 9caeef7e..c408d735 100644 --- a/packages/cdk-dynamodb-seeder/src/dynamodb-seeder.ts +++ b/packages/cdk-dynamodb-seeder/src/dynamodb-seeder.ts @@ -27,7 +27,7 @@ export class DynamoDBSeeder extends Construct { const handler = new lambda.SingletonFunction(this, 'CustomResourceHandler', { uuid: 'Custom::DynamodbSeeder', - runtime: lambda.Runtime.NODEJS_16_X, + runtime: lambda.Runtime.NODEJS_18_X, code: lambda.Code.fromAsset(path.join(__dirname, 'lambdas', 'dynamodb-seeder')), handler: 'index.handler', lambdaPurpose: 'Custom::DynamodbSeeder', diff --git a/packages/cdk-github-webhook/src/__tests__/__snapshots__/github-webhook.test.ts.snap b/packages/cdk-github-webhook/src/__tests__/__snapshots__/github-webhook.test.ts.snap index 34eb6d31..0531ec5e 100644 --- a/packages/cdk-github-webhook/src/__tests__/__snapshots__/github-webhook.test.ts.snap +++ b/packages/cdk-github-webhook/src/__tests__/__snapshots__/github-webhook.test.ts.snap @@ -16,7 +16,7 @@ Object { "Arn", ], }, - "Runtime": "nodejs16.x", + "Runtime": "nodejs18.x", "Timeout": 900, }, "Type": "AWS::Lambda::Function", diff --git a/packages/cdk-github-webhook/src/github-webhook.ts b/packages/cdk-github-webhook/src/github-webhook.ts index cae8541a..3b1af70b 100644 --- a/packages/cdk-github-webhook/src/github-webhook.ts +++ b/packages/cdk-github-webhook/src/github-webhook.ts @@ -36,7 +36,7 @@ export class GithubWebhook extends Construct { const handler = new aws_lambda.SingletonFunction(this, 'CustomResourceHandler', { uuid: '83CBF3EB-7B62-44F2-8C67-8441E4C1232E', - runtime: aws_lambda.Runtime.NODEJS_16_X, + runtime: aws_lambda.Runtime.NODEJS_18_X, code: aws_lambda.Code.fromAsset(path.join(__dirname, 'lambdas', 'github-webhook')), handler: 'index.handler', lambdaPurpose: 'Custom::GithubWebhook', diff --git a/packages/cdk-lambda-at-edge-pattern/src/__tests__/__snapshots__/http-headers.test.ts.snap b/packages/cdk-lambda-at-edge-pattern/src/__tests__/__snapshots__/http-headers.test.ts.snap index d1dfeaa3..9a7a9c15 100644 --- a/packages/cdk-lambda-at-edge-pattern/src/__tests__/__snapshots__/http-headers.test.ts.snap +++ b/packages/cdk-lambda-at-edge-pattern/src/__tests__/__snapshots__/http-headers.test.ts.snap @@ -16,7 +16,7 @@ Object { "Arn", ], }, - "Runtime": "nodejs16.x", + "Runtime": "nodejs18.x", }, "Type": "AWS::Lambda::Function", }, @@ -142,7 +142,7 @@ Object { "Arn", ], }, - "Runtime": "nodejs16.x", + "Runtime": "nodejs18.x", "Timeout": 300, }, "Type": "AWS::Lambda::Function", @@ -374,7 +374,7 @@ Object { "Arn", ], }, - "Runtime": "nodejs16.x", + "Runtime": "nodejs18.x", "Timeout": 300, }, "Type": "AWS::Lambda::Function", @@ -494,7 +494,7 @@ Object { "Arn", ], }, - "Runtime": "nodejs16.x", + "Runtime": "nodejs18.x", }, "Type": "AWS::Lambda::Function", }, diff --git a/packages/cdk-lambda-at-edge-pattern/src/__tests__/__snapshots__/origin-mutation.test.ts.snap b/packages/cdk-lambda-at-edge-pattern/src/__tests__/__snapshots__/origin-mutation.test.ts.snap index cf99c12e..db9cebfc 100644 --- a/packages/cdk-lambda-at-edge-pattern/src/__tests__/__snapshots__/origin-mutation.test.ts.snap +++ b/packages/cdk-lambda-at-edge-pattern/src/__tests__/__snapshots__/origin-mutation.test.ts.snap @@ -66,7 +66,7 @@ Object { "Arn", ], }, - "Runtime": "nodejs16.x", + "Runtime": "nodejs18.x", "Timeout": 300, }, "Type": "AWS::Lambda::Function", @@ -177,7 +177,7 @@ Object { "Arn", ], }, - "Runtime": "nodejs16.x", + "Runtime": "nodejs18.x", }, "Type": "AWS::Lambda::Function", }, diff --git a/packages/cdk-lambda-at-edge-pattern/src/edge-function.ts b/packages/cdk-lambda-at-edge-pattern/src/edge-function.ts index 9c27e8d3..f51f9877 100644 --- a/packages/cdk-lambda-at-edge-pattern/src/edge-function.ts +++ b/packages/cdk-lambda-at-edge-pattern/src/edge-function.ts @@ -39,7 +39,7 @@ export class EdgeFunction extends BaseEdgeConstruct implements IEdgeLambda { this.eventType = props.eventType; const edgeFunction = new aws_lambda.Function(this.edgeStack, `${name}Function`, { - runtime: aws_lambda.Runtime.NODEJS_16_X, + runtime: aws_lambda.Runtime.NODEJS_18_X, handler: 'index.handler', code: props.code, role: this.edgeRole.role, diff --git a/packages/cdk-lambda-at-edge-pattern/src/with-configuration.ts b/packages/cdk-lambda-at-edge-pattern/src/with-configuration.ts index 997669ad..bb2001dd 100644 --- a/packages/cdk-lambda-at-edge-pattern/src/with-configuration.ts +++ b/packages/cdk-lambda-at-edge-pattern/src/with-configuration.ts @@ -30,7 +30,7 @@ export class WithConfiguration extends Construct { const handler = new aws_lambda.SingletonFunction(this, 'Handler', { uuid: 'cloudcomponents-cdk-lambda-at-edge-pattern-with-configuration', - runtime: aws_lambda.Runtime.NODEJS_16_X, + runtime: aws_lambda.Runtime.NODEJS_18_X, code: aws_lambda.Code.fromAsset(path.join(__dirname, 'lambdas', 'with-configuration')), handler: 'index.handler', lambdaPurpose: resourceType, diff --git a/packages/cdk-pull-request-approval-rule/src/__tests__/__snapshots__/approval-rule-template-repository-association.test.ts.snap b/packages/cdk-pull-request-approval-rule/src/__tests__/__snapshots__/approval-rule-template-repository-association.test.ts.snap index 1f6aa40d..34c15572 100644 --- a/packages/cdk-pull-request-approval-rule/src/__tests__/__snapshots__/approval-rule-template-repository-association.test.ts.snap +++ b/packages/cdk-pull-request-approval-rule/src/__tests__/__snapshots__/approval-rule-template-repository-association.test.ts.snap @@ -42,7 +42,7 @@ Object { "Arn", ], }, - "Runtime": "nodejs16.x", + "Runtime": "nodejs18.x", "Timeout": 900, }, "Type": "AWS::Lambda::Function", @@ -139,7 +139,7 @@ Object { "Arn", ], }, - "Runtime": "nodejs16.x", + "Runtime": "nodejs18.x", "Timeout": 900, }, "Type": "AWS::Lambda::Function", diff --git a/packages/cdk-pull-request-approval-rule/src/__tests__/__snapshots__/approval-rule-template.test.ts.snap b/packages/cdk-pull-request-approval-rule/src/__tests__/__snapshots__/approval-rule-template.test.ts.snap index ccd1d4fb..f0db9f77 100644 --- a/packages/cdk-pull-request-approval-rule/src/__tests__/__snapshots__/approval-rule-template.test.ts.snap +++ b/packages/cdk-pull-request-approval-rule/src/__tests__/__snapshots__/approval-rule-template.test.ts.snap @@ -41,7 +41,7 @@ Object { "Arn", ], }, - "Runtime": "nodejs16.x", + "Runtime": "nodejs18.x", "Timeout": 900, }, "Type": "AWS::Lambda::Function", @@ -139,7 +139,7 @@ Object { "Arn", ], }, - "Runtime": "nodejs16.x", + "Runtime": "nodejs18.x", "Timeout": 900, }, "Type": "AWS::Lambda::Function", diff --git a/packages/cdk-pull-request-approval-rule/src/approval-rule-template-repository-association.ts b/packages/cdk-pull-request-approval-rule/src/approval-rule-template-repository-association.ts index f771a92c..5324e3d6 100644 --- a/packages/cdk-pull-request-approval-rule/src/approval-rule-template-repository-association.ts +++ b/packages/cdk-pull-request-approval-rule/src/approval-rule-template-repository-association.ts @@ -29,7 +29,7 @@ export class ApprovalRuleTemplateRepositoryAssociation extends Construct { const serviceToken = CustomResourceProvider.getOrCreate(this, resourceType, { codeDirectory: approvalRuleTemplateRepositoryAssociationDir, - runtime: CustomResourceProviderRuntime.NODEJS_16_X, + runtime: CustomResourceProviderRuntime.NODEJS_18_X, policyStatements: [ { Effect: 'Allow', diff --git a/packages/cdk-pull-request-approval-rule/src/approval-rule-template.ts b/packages/cdk-pull-request-approval-rule/src/approval-rule-template.ts index c645ee87..d3452730 100644 --- a/packages/cdk-pull-request-approval-rule/src/approval-rule-template.ts +++ b/packages/cdk-pull-request-approval-rule/src/approval-rule-template.ts @@ -40,7 +40,7 @@ export class ApprovalRuleTemplate extends Construct { const serviceToken = CustomResourceProvider.getOrCreate(this, 'Custom::ApprovalRuleTemplate', { codeDirectory: approvalRuleTemplateDir, - runtime: CustomResourceProviderRuntime.NODEJS_16_X, + runtime: CustomResourceProviderRuntime.NODEJS_18_X, policyStatements: [ { Effect: 'Allow', diff --git a/packages/cdk-pull-request-check/src/__tests__/__snapshots__/pull-request-check.test.ts.snap b/packages/cdk-pull-request-check/src/__tests__/__snapshots__/pull-request-check.test.ts.snap index dd69130f..a8bcf2dd 100644 --- a/packages/cdk-pull-request-check/src/__tests__/__snapshots__/pull-request-check.test.ts.snap +++ b/packages/cdk-pull-request-check/src/__tests__/__snapshots__/pull-request-check.test.ts.snap @@ -35,7 +35,7 @@ Object { "Arn", ], }, - "Runtime": "nodejs16.x", + "Runtime": "nodejs18.x", }, "Type": "AWS::Lambda::Function", }, @@ -491,7 +491,7 @@ Object { "Arn", ], }, - "Runtime": "nodejs16.x", + "Runtime": "nodejs18.x", }, "Type": "AWS::Lambda::Function", }, @@ -960,7 +960,7 @@ Object { "Arn", ], }, - "Runtime": "nodejs16.x", + "Runtime": "nodejs18.x", }, "Type": "AWS::Lambda::Function", }, @@ -1429,7 +1429,7 @@ Object { "Arn", ], }, - "Runtime": "nodejs16.x", + "Runtime": "nodejs18.x", }, "Type": "AWS::Lambda::Function", }, @@ -2022,7 +2022,7 @@ Object { "Arn", ], }, - "Runtime": "nodejs16.x", + "Runtime": "nodejs18.x", }, "Type": "AWS::Lambda::Function", }, @@ -2491,7 +2491,7 @@ Object { "Arn", ], }, - "Runtime": "nodejs16.x", + "Runtime": "nodejs18.x", }, "Type": "AWS::Lambda::Function", }, @@ -2844,7 +2844,7 @@ Object { "Arn", ], }, - "Runtime": "nodejs16.x", + "Runtime": "nodejs18.x", }, "Type": "AWS::Lambda::Function", }, diff --git a/packages/cdk-pull-request-check/src/pull-request-check.ts b/packages/cdk-pull-request-check/src/pull-request-check.ts index 71bdee36..87449391 100644 --- a/packages/cdk-pull-request-check/src/pull-request-check.ts +++ b/packages/cdk-pull-request-check/src/pull-request-check.ts @@ -180,7 +180,7 @@ export class PullRequestCheck extends Construct { if (updateApprovalState || postComment) { this.codeBuildResultFunction = new Function(this, 'CodeBuildResultFunction', { - runtime: Runtime.NODEJS_16_X, + runtime: Runtime.NODEJS_18_X, code: Code.fromAsset(path.join(__dirname, 'lambdas', 'code-build-result')), handler: 'index.handler', environment: { diff --git a/packages/cdk-s3-antivirus/src/scanner.ts b/packages/cdk-s3-antivirus/src/scanner.ts index 4f2594ca..b0bb8499 100644 --- a/packages/cdk-s3-antivirus/src/scanner.ts +++ b/packages/cdk-s3-antivirus/src/scanner.ts @@ -42,7 +42,7 @@ export class Scanner extends Construct { this.scanFunction = new Function(this, 'ScanFunction', { code: Code.fromAsset(path.join(__dirname, 'lambdas', 'scan')), handler: 'index.handler', - runtime: Runtime.NODEJS_16_X, + runtime: Runtime.NODEJS_18_X, onSuccess: props.onResult, onFailure: props.onError, filesystem: FileSystem.fromEfsAccessPoint(this.sandbox.lambdaAccessPoint, '/mnt/lambda'), @@ -66,7 +66,7 @@ export class Scanner extends Construct { this.updateFunction = new Function(this, 'UpdateFunction', { code: Code.fromAsset(path.join(__dirname, 'lambdas', 'update')), handler: 'index.handler', - runtime: Runtime.NODEJS_16_X, + runtime: Runtime.NODEJS_18_X, onFailure: props.onError, timeout: Duration.minutes(5), memorySize: 1024, diff --git a/packages/cdk-stripe-webhook/src/__tests__/__snapshots__/stripe-event-bus-producer.test.ts.snap b/packages/cdk-stripe-webhook/src/__tests__/__snapshots__/stripe-event-bus-producer.test.ts.snap index 41bea58a..fbdbda47 100644 --- a/packages/cdk-stripe-webhook/src/__tests__/__snapshots__/stripe-event-bus-producer.test.ts.snap +++ b/packages/cdk-stripe-webhook/src/__tests__/__snapshots__/stripe-event-bus-producer.test.ts.snap @@ -256,7 +256,7 @@ Object { "Arn", ], }, - "Runtime": "nodejs16.x", + "Runtime": "nodejs18.x", }, "Type": "AWS::Lambda::Function", }, diff --git a/packages/cdk-stripe-webhook/src/__tests__/__snapshots__/stripe-webhook.test.ts.snap b/packages/cdk-stripe-webhook/src/__tests__/__snapshots__/stripe-webhook.test.ts.snap index 20fb669f..9bbc7118 100644 --- a/packages/cdk-stripe-webhook/src/__tests__/__snapshots__/stripe-webhook.test.ts.snap +++ b/packages/cdk-stripe-webhook/src/__tests__/__snapshots__/stripe-webhook.test.ts.snap @@ -16,7 +16,7 @@ Object { "Arn", ], }, - "Runtime": "nodejs16.x", + "Runtime": "nodejs18.x", "Timeout": 900, }, "Type": "AWS::Lambda::Function", @@ -91,7 +91,7 @@ Object { "Arn", ], }, - "Runtime": "nodejs16.x", + "Runtime": "nodejs18.x", "Timeout": 900, }, "Type": "AWS::Lambda::Function", diff --git a/packages/cdk-stripe-webhook/src/stripe-event-bus-producer.ts b/packages/cdk-stripe-webhook/src/stripe-event-bus-producer.ts index 33271eba..3be01d20 100644 --- a/packages/cdk-stripe-webhook/src/stripe-event-bus-producer.ts +++ b/packages/cdk-stripe-webhook/src/stripe-event-bus-producer.ts @@ -19,7 +19,7 @@ export class StripeEventBusProducer extends Construct { super(scope, id); const handler = new aws_lambda.Function(this, 'Function', { - runtime: aws_lambda.Runtime.NODEJS_16_X, + runtime: aws_lambda.Runtime.NODEJS_18_X, code: aws_lambda.Code.fromAsset(path.join(__dirname, 'lambdas', 'stripe-event-bus-producer')), handler: 'index.handler', }); diff --git a/packages/cdk-stripe-webhook/src/stripe-webhook.ts b/packages/cdk-stripe-webhook/src/stripe-webhook.ts index ce4b5f48..564d1384 100644 --- a/packages/cdk-stripe-webhook/src/stripe-webhook.ts +++ b/packages/cdk-stripe-webhook/src/stripe-webhook.ts @@ -22,7 +22,7 @@ export class StripeWebhook extends Construct { const handler = new aws_lambda.SingletonFunction(this, 'CustomResourceHandler', { uuid: 'e9db3870-d793-4cd2-96a9-efe2e318ebbc', - runtime: aws_lambda.Runtime.NODEJS_16_X, + runtime: aws_lambda.Runtime.NODEJS_18_X, code: aws_lambda.Code.fromAsset(path.join(__dirname, 'lambdas', 'stripe-webhook')), handler: 'index.handler', lambdaPurpose: 'Custom::StripeWebhook', diff --git a/packages/cdk-temp-stack/src/__tests__/__snapshots__/temp-stack.test.ts.snap b/packages/cdk-temp-stack/src/__tests__/__snapshots__/temp-stack.test.ts.snap index 38ad192b..4e8293c5 100644 --- a/packages/cdk-temp-stack/src/__tests__/__snapshots__/temp-stack.test.ts.snap +++ b/packages/cdk-temp-stack/src/__tests__/__snapshots__/temp-stack.test.ts.snap @@ -71,7 +71,7 @@ Object { "Arn", ], }, - "Runtime": "nodejs16.x", + "Runtime": "nodejs18.x", }, "Type": "AWS::Lambda::Function", }, diff --git a/packages/cdk-temp-stack/src/__tests__/__snapshots__/time-to-live.test.ts.snap b/packages/cdk-temp-stack/src/__tests__/__snapshots__/time-to-live.test.ts.snap index d485c880..c73af6ae 100644 --- a/packages/cdk-temp-stack/src/__tests__/__snapshots__/time-to-live.test.ts.snap +++ b/packages/cdk-temp-stack/src/__tests__/__snapshots__/time-to-live.test.ts.snap @@ -71,7 +71,7 @@ Object { "Arn", ], }, - "Runtime": "nodejs16.x", + "Runtime": "nodejs18.x", }, "Type": "AWS::Lambda::Function", }, diff --git a/packages/cdk-temp-stack/src/time-to-live.ts b/packages/cdk-temp-stack/src/time-to-live.ts index 30624727..bf2d8d71 100644 --- a/packages/cdk-temp-stack/src/time-to-live.ts +++ b/packages/cdk-temp-stack/src/time-to-live.ts @@ -16,7 +16,7 @@ export class TimeToLive extends Construct { Annotations.of(this).addInfo(`Warning! The stack destroys itself in ${props.ttl.toMinutes()} minutes.\n`); const deleteStack = new aws_lambda.Function(this, 'DeleteStack', { - runtime: aws_lambda.Runtime.NODEJS_16_X, + runtime: aws_lambda.Runtime.NODEJS_18_X, code: aws_lambda.Code.fromAsset(path.join(__dirname, 'lambdas', 'delete-stack')), handler: 'index.handler', });