From 42d024315cd61b738c5b9ca58fcd914ec4003a74 Mon Sep 17 00:00:00 2001 From: Jose Amoroso <142433457+jose-clickup@users.noreply.github.com> Date: Wed, 20 Dec 2023 14:20:31 -0500 Subject: [PATCH] chore: bump node version (#5) --- src/service-quotas-metric-publisher.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/service-quotas-metric-publisher.ts b/src/service-quotas-metric-publisher.ts index 1cd7be0..994cd45 100644 --- a/src/service-quotas-metric-publisher.ts +++ b/src/service-quotas-metric-publisher.ts @@ -1,4 +1,12 @@ -import { aws_iam, aws_lambda_nodejs, aws_events, aws_events_targets, aws_logs, Duration } from 'aws-cdk-lib'; +import { + aws_iam, + aws_lambda_nodejs, + aws_lambda, + aws_events, + aws_events_targets, + aws_logs, + Duration, +} from 'aws-cdk-lib'; import { Construct } from 'constructs'; import { Namer } from 'multi-convention-namer'; @@ -62,6 +70,7 @@ export class ServiceQuotasMetricPublisher extends Construct { const myConstruct = this; this.handler = new aws_lambda_nodejs.NodejsFunction(myConstruct, 'monitor', { + runtime: aws_lambda.Runtime.NODEJS_18_X, bundling: { externalModules: ['@aws-sdk/*'], minify: true,