diff --git a/typescript/api-gateway-lambda-token-authorizer/package.json b/typescript/api-gateway-lambda-token-authorizer/package.json index 95900252c1..25a23241d2 100644 --- a/typescript/api-gateway-lambda-token-authorizer/package.json +++ b/typescript/api-gateway-lambda-token-authorizer/package.json @@ -24,7 +24,7 @@ }, "dependencies": { "@types/aws-lambda": "^8.10.121", - "aws-cdk-lib": "2.96.2", + "aws-cdk-lib": "2.177.0", "constructs": "^10.0.0", "source-map-support": "^0.5.21" }, diff --git a/typescript/api-gateway-lambda-token-authorizer/test/stack/__snapshots__/gateway-lambda-auth-stack.test.ts.snap b/typescript/api-gateway-lambda-token-authorizer/test/stack/__snapshots__/gateway-lambda-auth-stack.test.ts.snap index df86865987..e54989d21d 100644 --- a/typescript/api-gateway-lambda-token-authorizer/test/stack/__snapshots__/gateway-lambda-auth-stack.test.ts.snap +++ b/typescript/api-gateway-lambda-token-authorizer/test/stack/__snapshots__/gateway-lambda-auth-stack.test.ts.snap @@ -2,6 +2,130 @@ exports[`Snapshot Stack 1`] = ` { + "Mappings": { + "LatestNodeRuntimeMap": { + "af-south-1": { + "value": "nodejs20.x", + }, + "ap-east-1": { + "value": "nodejs20.x", + }, + "ap-northeast-1": { + "value": "nodejs20.x", + }, + "ap-northeast-2": { + "value": "nodejs20.x", + }, + "ap-northeast-3": { + "value": "nodejs20.x", + }, + "ap-south-1": { + "value": "nodejs20.x", + }, + "ap-south-2": { + "value": "nodejs20.x", + }, + "ap-southeast-1": { + "value": "nodejs20.x", + }, + "ap-southeast-2": { + "value": "nodejs20.x", + }, + "ap-southeast-3": { + "value": "nodejs20.x", + }, + "ap-southeast-4": { + "value": "nodejs20.x", + }, + "ap-southeast-5": { + "value": "nodejs20.x", + }, + "ap-southeast-7": { + "value": "nodejs20.x", + }, + "ca-central-1": { + "value": "nodejs20.x", + }, + "ca-west-1": { + "value": "nodejs20.x", + }, + "cn-north-1": { + "value": "nodejs18.x", + }, + "cn-northwest-1": { + "value": "nodejs18.x", + }, + "eu-central-1": { + "value": "nodejs20.x", + }, + "eu-central-2": { + "value": "nodejs20.x", + }, + "eu-isoe-west-1": { + "value": "nodejs18.x", + }, + "eu-north-1": { + "value": "nodejs20.x", + }, + "eu-south-1": { + "value": "nodejs20.x", + }, + "eu-south-2": { + "value": "nodejs20.x", + }, + "eu-west-1": { + "value": "nodejs20.x", + }, + "eu-west-2": { + "value": "nodejs20.x", + }, + "eu-west-3": { + "value": "nodejs20.x", + }, + "il-central-1": { + "value": "nodejs20.x", + }, + "me-central-1": { + "value": "nodejs20.x", + }, + "me-south-1": { + "value": "nodejs20.x", + }, + "mx-central-1": { + "value": "nodejs20.x", + }, + "sa-east-1": { + "value": "nodejs20.x", + }, + "us-east-1": { + "value": "nodejs20.x", + }, + "us-east-2": { + "value": "nodejs20.x", + }, + "us-gov-east-1": { + "value": "nodejs18.x", + }, + "us-gov-west-1": { + "value": "nodejs18.x", + }, + "us-iso-east-1": { + "value": "nodejs18.x", + }, + "us-iso-west-1": { + "value": "nodejs18.x", + }, + "us-isob-east-1": { + "value": "nodejs18.x", + }, + "us-west-1": { + "value": "nodejs20.x", + }, + "us-west-2": { + "value": "nodejs20.x", + }, + }, + }, "Outputs": { "apiUrl": { "Value": { @@ -74,7 +198,7 @@ exports[`Snapshot Stack 1`] = ` "S3Bucket": { "Fn::Sub": "cdk-hnb659fds-assets-\${AWS::AccountId}-\${AWS::Region}", }, - "S3Key": "5bc602ecde93c947efe5899ae355f999986a1acbe610b1c0b9c468d738857555.zip", + "S3Key": "2819175352ad1ce0dae768e83fc328fb70fb5f10b4a8ff0ccbcb791f02b0716d.zip", }, "Handler": "index.handler", "Role": { @@ -83,7 +207,15 @@ exports[`Snapshot Stack 1`] = ` "Arn", ], }, - "Runtime": "nodejs18.x", + "Runtime": { + "Fn::FindInMap": [ + "LatestNodeRuntimeMap", + { + "Ref": "AWS::Region", + }, + "value", + ], + }, "Timeout": 900, }, "Type": "AWS::Lambda::Function", @@ -195,7 +327,6 @@ exports[`Snapshot Stack 1`] = ` "Description": "Lambda Authorizer", "Environment": { "Variables": { - "AWS_NODEJS_CONNECTION_REUSE_ENABLED": "1", "NODE_OPTIONS": "--enable-source-maps", }, }, @@ -308,6 +439,7 @@ exports[`Snapshot Stack 1`] = ` }, "operationalAuthorizer363A7D2B": { "Properties": { + "AuthorizerResultTtlInSeconds": 300, "AuthorizerUri": { "Fn::Join": [ "", @@ -380,7 +512,6 @@ exports[`Snapshot Stack 1`] = ` "Description": "Operational Lambda", "Environment": { "Variables": { - "AWS_NODEJS_CONNECTION_REUSE_ENABLED": "1", "NODE_OPTIONS": "--enable-source-maps", }, },