Skip to content

Commit

Permalink
Update cdk version and use latest adot
Browse files Browse the repository at this point in the history
  • Loading branch information
branberry committed Oct 13, 2023
1 parent a406a2b commit 20d85d6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
4 changes: 3 additions & 1 deletion cdk-infra/lib/constructs/api/webhook-api-construct.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {
Code,
Function,
Runtime,
Tracing,
} from 'aws-cdk-lib/aws-lambda';
import { SqsEventSource } from 'aws-cdk-lib/aws-lambda-event-sources';
import { BundlingOptions, NodejsFunction } from 'aws-cdk-lib/aws-lambda-nodejs';
Expand Down Expand Up @@ -79,9 +80,10 @@ export class WebhookApiConstruct extends Construct {
bundling,
environment,
timeout,
tracing: Tracing.ACTIVE,
adotInstrumentation: {
execWrapper: AdotLambdaExecWrapper.REGULAR_HANDLER,
layerVersion: AdotLayerVersion.fromJavaScriptSdkLayerVersion(AdotLambdaLayerJavaScriptSdkVersion.V1_7_0),
layerVersion: AdotLayerVersion.fromJavaScriptSdkLayerVersion(AdotLambdaLayerJavaScriptSdkVersion.LATEST),
},
});

Expand Down
8 changes: 4 additions & 4 deletions cdk-infra/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion cdk-infra/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"@swc/helpers": "^0.5.1",
"@types/jest": "^29.4.0",
"@types/node": "18.14.6",
"aws-cdk": "2.73.0",
"aws-cdk": "2.100.0",
"esbuild": "^0.18.3",
"jest": "^29.5.0",
"regenerator-runtime": "^0.13.11",
Expand Down

0 comments on commit 20d85d6

Please sign in to comment.