From 07bb9f7af3c6204655395c1f75b48ed4197907b9 Mon Sep 17 00:00:00 2001 From: Alexander Schueren Date: Tue, 7 May 2024 13:16:36 +0200 Subject: [PATCH] chore(docs): fix update layer arn for cdk --- .github/scripts/update_layer_arn.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/scripts/update_layer_arn.sh b/.github/scripts/update_layer_arn.sh index 3664259812..f5f1f10c36 100755 --- a/.github/scripts/update_layer_arn.sh +++ b/.github/scripts/update_layer_arn.sh @@ -56,7 +56,7 @@ for file in $files; do # arn:aws:lambda:{env.region}:094274105915:layer:AWSLambdaPowertoolsTypeScript:39 if [[ "$line" == *"eu-central-1"* ]]; then # These are all the framework pseudo parameters currently found in the docs - for pseudo_region in '{region}' '${AWS::Region}' '${aws:region}' '{aws::region}' '{env.region}' '${cdk.Stack.of(this).region}' '${aws.getRegionOutput().name}'; do + for pseudo_region in '{region}' '${AWS::Region}' '${aws:region}' '{aws::region}' '{env.region}' '${Stack.of(this).region}' '${aws.getRegionOutput().name}'; do prefix_pseudo_region=$(echo "$prefix" | sed "s/eu-central-1/${pseudo_region}/") # prefix_pseudo_region = arn:aws:lambda:${AWS::Region}:094274105915:layer:AWSLambdaPowertoolsTypeScript