Skip to content

Commit 42d0243

Browse files
authored
chore: bump node version (#5)
1 parent 422779f commit 42d0243

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/service-quotas-metric-publisher.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
1-
import { aws_iam, aws_lambda_nodejs, aws_events, aws_events_targets, aws_logs, Duration } from 'aws-cdk-lib';
1+
import {
2+
aws_iam,
3+
aws_lambda_nodejs,
4+
aws_lambda,
5+
aws_events,
6+
aws_events_targets,
7+
aws_logs,
8+
Duration,
9+
} from 'aws-cdk-lib';
210
import { Construct } from 'constructs';
311
import { Namer } from 'multi-convention-namer';
412

@@ -62,6 +70,7 @@ export class ServiceQuotasMetricPublisher extends Construct {
6270
const myConstruct = this;
6371

6472
this.handler = new aws_lambda_nodejs.NodejsFunction(myConstruct, 'monitor', {
73+
runtime: aws_lambda.Runtime.NODEJS_18_X,
6574
bundling: {
6675
externalModules: ['@aws-sdk/*'],
6776
minify: true,

0 commit comments

Comments
 (0)