From 24110a17c6224dd7c818d3e27b834228fbd12bb6 Mon Sep 17 00:00:00 2001 From: SankyRed Date: Tue, 5 Sep 2023 13:35:56 -0500 Subject: [PATCH] Fix the build --- packages/aws-cdk-lib/aws-lambda/test/adot.test.ts | 15 ++++++--------- .../region-info/build-tools/fact-tables.ts | 2 +- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/packages/aws-cdk-lib/aws-lambda/test/adot.test.ts b/packages/aws-cdk-lib/aws-lambda/test/adot.test.ts index 8189a6da43e72..9477406688a5d 100644 --- a/packages/aws-cdk-lib/aws-lambda/test/adot.test.ts +++ b/packages/aws-cdk-lib/aws-lambda/test/adot.test.ts @@ -107,15 +107,12 @@ describe('ADOT Lambda Layer', () => { // THEN Template.fromStack(fn.stack).hasOutput('ExportLayerArn', { Value: { - 'Fn::Join': [ - '', - [ - 'arn:aws:lambda:', - { - Ref: 'AWS::Region', - }, - ':901920570463:layer:aws-otel-java-wrapper-arm64-ver-1-28-1:1', - ], + 'Fn::FindInMap': [ + 'AdotlambdalayerMap', + { + Ref: 'AWS::Region', + }, + 'JAVAxSDKx1x28x1xarm64', ], }, }); diff --git a/packages/aws-cdk-lib/region-info/build-tools/fact-tables.ts b/packages/aws-cdk-lib/region-info/build-tools/fact-tables.ts index 23cbae530ee8c..1c058c663c02b 100644 --- a/packages/aws-cdk-lib/region-info/build-tools/fact-tables.ts +++ b/packages/aws-cdk-lib/region-info/build-tools/fact-tables.ts @@ -616,7 +616,7 @@ const ADOT_LAMBDA_LAYER_JAVA_SDK_ARNS: { [version: string]: { [arch: string]: { 'eu-west-1': 'arn:aws:lambda:eu-west-1:901920570463:layer:aws-otel-java-wrapper-amd64-ver-1-28-1:1', 'eu-west-2': 'arn:aws:lambda:eu-west-2:901920570463:layer:aws-otel-java-wrapper-amd64-ver-1-28-1:1', 'eu-west-3': 'arn:aws:lambda:eu-west-3:901920570463:layer:aws-otel-java-wrapper-amd64-ver-1-28-1:1', - //'il-central-1': 'arn:aws:lambda:il-central-1:901920570463:layer:aws-otel-java-wrapper-amd64-ver-1-28-1:1', + // 'il-central-1': 'arn:aws:lambda:il-central-1:901920570463:layer:aws-otel-java-wrapper-amd64-ver-1-28-1:1', // 'me-central-1': 'arn:aws:lambda:me-central-1:901920570463:layer:aws-otel-java-wrapper-amd64-ver-1-28-1:1', 'me-south-1': 'arn:aws:lambda:me-south-1:901920570463:layer:aws-otel-java-wrapper-amd64-ver-1-28-1:1', 'sa-east-1': 'arn:aws:lambda:sa-east-1:901920570463:layer:aws-otel-java-wrapper-amd64-ver-1-28-1:1',