From 9e815e29297ba0f389e33098a87bc97ff58f692d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 8 Mar 2025 22:51:49 +0000 Subject: [PATCH 1/3] build(deps): bump aws-cdk-lib Bumps [aws-cdk-lib](https://github.com/aws/aws-cdk/tree/HEAD/packages/aws-cdk-lib) from 2.96.2 to 2.177.0. - [Release notes](https://github.com/aws/aws-cdk/releases) - [Changelog](https://github.com/aws/aws-cdk/blob/main/CHANGELOG.v2.md) - [Commits](https://github.com/aws/aws-cdk/commits/v2.177.0/packages/aws-cdk-lib) --- updated-dependencies: - dependency-name: aws-cdk-lib dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- typescript/api-gateway-lambda-token-authorizer/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" }, From b008a9e33ba1b9632583a3a5525e808310e3bec3 Mon Sep 17 00:00:00 2001 From: Michael Kaiser Date: Sat, 8 Mar 2025 16:59:30 -0600 Subject: [PATCH 2/3] Fix: Update the snapshot --- .../gateway-lambda-auth-stack.test.ts.snap | 143 +++++++++++++++++- 1 file changed, 137 insertions(+), 6 deletions(-) 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..61b64d2192 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", @@ -190,12 +322,11 @@ exports[`Snapshot Stack 1`] = ` "S3Bucket": { "Fn::Sub": "cdk-hnb659fds-assets-\${AWS::AccountId}-\${AWS::Region}", }, - "S3Key": "a1deff17a695906f93c544b1deae2bf444210622f05330da961687eb8f4a51a7.zip", + "S3Key": "ac3effd15afe0367563b5aacbaad876b4ea9cfdf084efbde296b9993d4395441.zip", }, "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": [ "", @@ -375,12 +507,11 @@ exports[`Snapshot Stack 1`] = ` "S3Bucket": { "Fn::Sub": "cdk-hnb659fds-assets-\${AWS::AccountId}-\${AWS::Region}", }, - "S3Key": "5ce4b859d5e57c3d238da3ac017e0ea37bf34ad1b71de268430b08e38bb9450d.zip", + "S3Key": "23fe10ef355cbfff939f62c276e99337c50abb96e1c51dd018dbf0d3ce41a7bd.zip", }, "Description": "Operational Lambda", "Environment": { "Variables": { - "AWS_NODEJS_CONNECTION_REUSE_ENABLED": "1", "NODE_OPTIONS": "--enable-source-maps", }, }, From c4c130fa37bd82df0fa4eb6e4d139f8c72df190c Mon Sep 17 00:00:00 2001 From: Michael Kaiser Date: Sat, 8 Mar 2025 17:03:46 -0600 Subject: [PATCH 3/3] Fix: Update the snapshot with new hash --- .../__snapshots__/gateway-lambda-auth-stack.test.ts.snap | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 61b64d2192..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 @@ -322,7 +322,7 @@ exports[`Snapshot Stack 1`] = ` "S3Bucket": { "Fn::Sub": "cdk-hnb659fds-assets-\${AWS::AccountId}-\${AWS::Region}", }, - "S3Key": "ac3effd15afe0367563b5aacbaad876b4ea9cfdf084efbde296b9993d4395441.zip", + "S3Key": "a1deff17a695906f93c544b1deae2bf444210622f05330da961687eb8f4a51a7.zip", }, "Description": "Lambda Authorizer", "Environment": { @@ -507,7 +507,7 @@ exports[`Snapshot Stack 1`] = ` "S3Bucket": { "Fn::Sub": "cdk-hnb659fds-assets-\${AWS::AccountId}-\${AWS::Region}", }, - "S3Key": "23fe10ef355cbfff939f62c276e99337c50abb96e1c51dd018dbf0d3ce41a7bd.zip", + "S3Key": "5ce4b859d5e57c3d238da3ac017e0ea37bf34ad1b71de268430b08e38bb9450d.zip", }, "Description": "Operational Lambda", "Environment": {