Skip to content

Commit e0c2753

Browse files
committed
chore: updated cdk example runtime
1 parent 8c2e436 commit e0c2753

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/cdk/src/example-function.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { custom_resources, aws_iam } from 'aws-cdk-lib';
22
import { Events } from '@aws-lambda-powertools/commons';
33
import { Construct } from 'constructs';
44
import { NodejsFunction, NodejsFunctionProps } from 'aws-cdk-lib/aws-lambda-nodejs';
5-
import { Tracing } from 'aws-cdk-lib/aws-lambda';
5+
import { Tracing, Runtime } from 'aws-cdk-lib/aws-lambda';
66

77
interface ExampleFunctionProps {
88
readonly functionName: string
@@ -23,6 +23,7 @@ class ExampleFunction extends Construct {
2323

2424
const fn = new NodejsFunction(this, functionName, {
2525
tracing: tracingActive ? Tracing.ACTIVE : Tracing.DISABLED,
26+
runtime: Runtime.NODEJS_16_X,
2627
...fnProps
2728
});
2829

0 commit comments

Comments
 (0)