Skip to content

Commit a1be3c0

Browse files
authored
chore(docs): fix update layer arn for cdk (#2487)
1 parent 4e76c23 commit a1be3c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/scripts/update_layer_arn.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ for file in $files; do
5656
# arn:aws:lambda:{env.region}:094274105915:layer:AWSLambdaPowertoolsTypeScript:39
5757
if [[ "$line" == *"eu-central-1"* ]]; then
5858
# These are all the framework pseudo parameters currently found in the docs
59-
for pseudo_region in '{region}' '${AWS::Region}' '${aws:region}' '{aws::region}' '{env.region}' '${cdk.Stack.of(this).region}' '${aws.getRegionOutput().name}'; do
59+
for pseudo_region in '{region}' '${AWS::Region}' '${aws:region}' '{aws::region}' '{env.region}' '${Stack.of(this).region}' '${aws.getRegionOutput().name}'; do
6060
prefix_pseudo_region=$(echo "$prefix" | sed "s/eu-central-1/${pseudo_region}/")
6161
# prefix_pseudo_region = arn:aws:lambda:${AWS::Region}:094274105915:layer:AWSLambdaPowertoolsTypeScript
6262

0 commit comments

Comments
 (0)