Skip to content

Update cdk and Lambda function's nodejs version. #29

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/cognito_identity_pool_sample-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export class CognitoIdentityPoolSampleStack extends Stack {

// Create a pre-token-generation lambda function which adds the 'department: Engineering' claim to user-tokens
const preTokenLambda = new lambda.Function(this, "PreTokenHandler", {
runtime: lambda.Runtime.NODEJS_14_X,
runtime: lambda.Runtime.NODEJS_22_X,
code: lambda.Code.fromAsset("resources"),
handler: "pre-token-trigger.handler",
});
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@
"@types/node": "10.17.27",
"jest": "^26.4.2",
"ts-jest": "^26.2.0",
"aws-cdk": "^2.17.0",
"aws-cdk": "^2.177.0",
"ts-node": "^9.0.0",
"typescript": "~3.9.7"
},
"dependencies": {
"aws-cdk-lib": "^2.17.0",
"aws-cdk-lib": "^2.177.0",
"constructs": "^10.0.0",
"source-map-support": "^0.5.16"
}
Expand Down