Skip to content

Commit 2123fe2

Browse files
docs: update layers version + simplify script (#4096)
1 parent 6cd3fb4 commit 2123fe2

File tree

6 files changed

+82
-135
lines changed

6 files changed

+82
-135
lines changed

.github/scripts/update_layer_arn.sh

Lines changed: 29 additions & 88 deletions
Original file line numberDiff line numberDiff line change
@@ -1,98 +1,39 @@
11
#!/bin/bash
22

3-
# This script is run during the publish_layer workflow,
4-
# and it is responsible for replacing the layer ARN in our documentation,
5-
# based on the output files generated by CDK.
3+
# This script is run during the publish_layer.yml CI job,
4+
# and it is responsible for replacing the layer ARN in our documentation.
5+
# Our pipeline must generate the same layer number for all commercial regions + gov cloud
6+
# If this doesn't happens, we have an error and we must fix it in the deployment.
67
#
78
# see .github/workflows/publish_layer.yml
89

9-
set -eo pipefail
1010

11-
if [[ $# -ne 1 ]]; then
12-
cat <<EOM
13-
Usage: $(basename $0) cdk-output-dir
14-
15-
cdk-output-dir: directory containing the cdk output files generated when deploying the Layer
16-
EOM
17-
exit 1
18-
fi
19-
20-
CDK_OUTPUT_DIR=$1
21-
DOCS_FILE="docs/getting-started/lambda-layers.md"
22-
23-
# Check if CDK output dir is a directory
24-
if [ ! -d "$CDK_OUTPUT_DIR" ]; then
25-
echo "No $CDK_OUTPUT_DIR directory found, not replacing lambda layer versions"
26-
exit 1
11+
# Get the new version number from the first command-line argument
12+
new_version=$1
13+
if [ -z "$new_version" ]; then
14+
echo "Usage: $0 <new_version>"
15+
exit 1
2716
fi
2817

29-
# Process each file inside the directory
30-
files="$CDK_OUTPUT_DIR/*"
31-
for file in $files; do
32-
echo "[+] Processing: $file"
33-
34-
# Process each line inside the file
35-
lines=$(cat "$file")
36-
for line in $lines; do
37-
echo -e "\t[*] ARN: $line"
38-
# line = arn:aws:lambda:us-east-1:094274105915:layer:AWSLambdaPowertoolsTypeScript:49
39-
40-
# From the full ARN, extract everything but the version at the end. This prefix
41-
# will later be used to find/replace the ARN on the documentation file.
42-
prefix=$(echo "$line" | cut -d ':' -f 1-7)
43-
# prefix = arn:aws:lambda:us-east-1:094274105915:layer:AWSLambdaPowertoolsTypeScript
44-
45-
# Now replace the all "prefix"s in the file with the full new Layer ARN (line)
46-
# prefix:\d+ ==> line
47-
# sed doesn't support \d+ in a portable way, so we cheat with (:digit: :digit: *)
48-
sed -i -e "s/$prefix:[[:digit:]][[:digit:]]*/$line/g" $DOCS_FILE
49-
50-
# We use the eu-central-1 layer as the version for all the frameworks (SAM, CDK, SLS, etc)
51-
# We could have used any other region. What's important is the version at the end.
52-
53-
# Examples of strings found in the documentation with pseudo regions:
54-
# arn:aws:lambda:{region}:094274105915:layer:AWSLambdaPowertoolsTypeScript:39
55-
# arn:aws:lambda:${AWS::Region}:094274105915:layer:AWSLambdaPowertoolsTypeScript:39
56-
# arn:aws:lambda:${aws:region}:094274105915:layer:AWSLambdaPowertoolsTypeScript:39
57-
# arn:aws:lambda:{env.region}:094274105915:layer:AWSLambdaPowertoolsTypeScript:39
58-
if [[ "$line" == *"eu-central-1"* ]]; then
59-
# These are all the framework pseudo parameters currently found in the docs
60-
for pseudo_region in '{region}' '${AWS::Region}' '${aws:region}' '{aws::region}' '{env.region}' '${Stack.of(this).region}' '${aws.getRegionOutput().name}'; do
61-
prefix_pseudo_region=$(echo "$prefix" | sed "s/eu-central-1/${pseudo_region}/")
62-
# prefix_pseudo_region = arn:aws:lambda:${AWS::Region}:094274105915:layer:AWSLambdaPowertoolsTypeScript
63-
64-
line_pseudo_region=$(echo "$line" | sed "s/eu-central-1/${pseudo_region}/")
65-
# line_pseudo_region = arn:aws:lambda:${AWS::Region}:094274105915:layer:AWSLambdaPowertoolsTypeScript:49
66-
67-
# Replace all the "prefix_pseudo_region"'s in the file
68-
# prefix_pseudo_region:\d+ ==> line_pseudo_region
69-
sed -i -e "s/$prefix_pseudo_region:[[:digit:]][[:digit:]]*/$line_pseudo_region/g" $DOCS_FILE
70-
done
18+
# Find all files with specified extensions in ./docs and ./examples directories
19+
# -type f: only find files (not directories)
20+
# \( ... \): group conditions
21+
# -o: logical OR
22+
# -print0: use null character as separator (handles filenames with spaces)
23+
find ./docs ./examples -type f \( -name "*.md" -o -name "*.ts" -o -name "*.yaml" -o -name "*.txt" -o -name "*.tf" -o -name "*.yml" \) -print0 | while IFS= read -r -d '' file; do
24+
echo "Processing file: $file"
25+
26+
# Use sed to replace the version number in the Lambda layer ARN
27+
# -i: edit files in-place without creating a backup
28+
# -E: use extended regular expressions
29+
# IF TESTING IN MAC, replace `-i` with `-i ''`
30+
# The regex matches the layer name and replaces only the version number at the end
31+
sed -i -E "s/AWSLambdaPowertoolsTypeScriptV2:[0-9]+/AWSLambdaPowertoolsTypeScriptV2:$new_version/g" "$file"
32+
if [ $? -eq 0 ]; then
33+
echo "Updated $file successfully"
34+
grep "arn:aws:lambda:" "$file"
35+
else
36+
echo "Error processing $file"
7137
fi
72-
done
7338
done
74-
75-
echo "[+] Finished processing all commercial regions"
76-
77-
# Now we need to process GovCloud regions
78-
#
79-
# GovCloud layers are not available in the CDK output files, but we know the ARN format and that the version is the same
80-
# as the one in eu-central-1. So we can optimistically update the version of the GovCloud layers in the documentation.
81-
#
82-
# The GovCloud ARNs are (note that the account IDs are different in both):
83-
# arn:aws-us-gov:lambda:us-gov-west-1:165093116878:layer:AWSLambdaPowertoolsTypeScriptV2:25
84-
# arn:aws-us-gov:lambda:us-gov-east-1:165087284144:layer:AWSLambdaPowertoolsTypeScriptV2:25
85-
86-
version=$(echo "$line" | cut -d ':' -f 8) # version = 25
87-
arn_us_gov_west_1="arn:aws-us-gov:lambda:us-gov-west-1:165093116878:layer:AWSLambdaPowertoolsTypeScriptV2:$version"
88-
prefix_us_gov_west_1=$(echo "$arn_us_gov_west_1" | cut -d ':' -f 1-7)
89-
arn_us_gov_east_1="arn:aws-us-gov:lambda:us-gov-east-1:165087284144:layer:AWSLambdaPowertoolsTypeScriptV2:$version"
90-
prefix_us_gov_east_1=$(echo "$arn_us_gov_east_1" | cut -d ':' -f 1-7)
91-
echo -e "\t[*] ARN GovCloud US West 1: $arn_us_gov_west_1"
92-
echo -e "\t[*] ARN GovCloud US East 1: $arn_us_gov_east_1"
93-
# Replace all the "arn_us_gov_west_1"'s in the file
94-
sed -i -e "s/$prefix_us_gov_west_1:[[:digit:]][[:digit:]]*/$arn_us_gov_west_1/g" $DOCS_FILE
95-
# Replace all the "arn_us_gov_east_1"'s in the file
96-
sed -i -e "s/$prefix_us_gov_east_1:[[:digit:]][[:digit:]]*/$arn_us_gov_east_1/g" $DOCS_FILE
97-
echo "[+] Finished processing all GovCloud regions"
98-
echo "[+] Finished processing all regions"
39+
echo "Layer version update attempt completed."

.github/workflows/make-release.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,12 @@ name: Make Release
1818
# 5. Update draft release notes with the latest changes and publish the release on GitHub
1919

2020
on:
21-
workflow_dispatch: {}
21+
workflow_dispatch:
22+
inputs:
23+
layer_documentation_version:
24+
description: "Lambda layer version to be updated in our documentation. e.g. if the current layer number is 3, this value must be 4."
25+
type: string
26+
required: true
2227

2328
permissions:
2429
contents: read
@@ -101,3 +106,4 @@ jobs:
101106
uses: ./.github/workflows/publish_layer.yml
102107
with:
103108
latest_published_version: ${{ needs.publish-npm.outputs.RELEASE_VERSION }}
109+
layer_documentation_version: ${{ inputs.layer_documentation_version }}

.github/workflows/publish_layer.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ on:
1111
description: "Latest npm published version to rebuild corresponding layer for, e.g. 1.0.2"
1212
default: "1.0.2"
1313
required: true
14+
layer_documentation_version:
15+
description: "Version to be updated in our documentation. e.g. if the current layer number is 3, this value must be 4."
16+
required: true
1417

1518
workflow_call:
1619
inputs:
@@ -23,6 +26,10 @@ on:
2326
default: false
2427
type: boolean
2528
required: false
29+
layer_documentation_version:
30+
description: "Version to be updated in our documentation. e.g. if the current layer number is 3, this value must be 4."
31+
required: true
32+
type: string
2633

2734
jobs:
2835
# Build layer by running cdk synth in layer-publisher directory and uploading cdk.out for deployment
@@ -96,21 +103,14 @@ jobs:
96103
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
97104
with:
98105
ref: ${{ github.sha }}
99-
- name: Download CDK layer artifacts
100-
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
101-
with:
102-
path: cdk-layer-stack
103-
pattern: cdk-layer-stack-* # merge all Layer artifacts created per region earlier (reusable_deploy_layer_stack.yml; step "Save Layer ARN artifact")
104-
merge-multiple: true
105106
- name: Replace layer versions in documentation
106107
run: |
107-
ls -la cdk-layer-stack/
108-
./.github/scripts/update_layer_arn.sh cdk-layer-stack
108+
./.github/scripts/update_layer_arn.sh ${{ inputs.layer_documentation_version }}
109109
- name: Create PR
110110
id: create-pr
111111
uses: ./.github/actions/create-pr
112112
with:
113113
files: 'docs/getting-started/lambda-layers.md'
114114
temp_branch_prefix: 'ci-layer-docs'
115115
pull_request_title: 'chore(ci): update layer ARN on documentation'
116-
github_token: ${{ secrets.GITHUB_TOKEN }}
116+
github_token: ${{ secrets.GITHUB_TOKEN }}

docs/getting-started/lambda-layers.md

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -19,41 +19,41 @@ We publish the Lambda Layer for Powertools for AWS Lambda in all commercial regi
1919

2020
| Region | Layer ARN |
2121
| ---------------- | ---------------------------------------------------------------------------------------------------------- |
22-
| `us-east-1` | [arn:aws:lambda:us-east-1:094274105915:layer:AWSLambdaPowertoolsTypeScriptV2:28](#){: .copyMe} |
23-
| `us-east-2` | [arn:aws:lambda:us-east-2:094274105915:layer:AWSLambdaPowertoolsTypeScriptV2:28](#){: .copyMe} |
24-
| `us-west-1` | [arn:aws:lambda:us-west-1:094274105915:layer:AWSLambdaPowertoolsTypeScriptV2:28](#){: .copyMe} |
25-
| `us-west-2` | [arn:aws:lambda:us-west-2:094274105915:layer:AWSLambdaPowertoolsTypeScriptV2:28](#){: .copyMe} |
26-
| `ap-south-1` | [arn:aws:lambda:ap-south-1:094274105915:layer:AWSLambdaPowertoolsTypeScriptV2:28](#){: .copyMe} |
27-
| `ap-south-2` | [arn:aws:lambda:ap-south-2:094274105915:layer:AWSLambdaPowertoolsTypeScriptV2:28](#){: .copyMe} |
28-
| `ap-east-1` | [arn:aws:lambda:ap-east-1:094274105915:layer:AWSLambdaPowertoolsTypeScriptV2:28](#){: .copyMe} |
29-
| `ap-northeast-1` | [arn:aws:lambda:ap-northeast-1:094274105915:layer:AWSLambdaPowertoolsTypeScriptV2:28](#){: .copyMe} |
30-
| `ap-northeast-2` | [arn:aws:lambda:ap-northeast-2:094274105915:layer:AWSLambdaPowertoolsTypeScriptV2:28](#){: .copyMe} |
31-
| `ap-northeast-3` | [arn:aws:lambda:ap-northeast-3:094274105915:layer:AWSLambdaPowertoolsTypeScriptV2:28](#){: .copyMe} |
32-
| `ap-southeast-1` | [arn:aws:lambda:ap-southeast-1:094274105915:layer:AWSLambdaPowertoolsTypeScriptV2:28](#){: .copyMe} |
33-
| `ap-southeast-2` | [arn:aws:lambda:ap-southeast-2:094274105915:layer:AWSLambdaPowertoolsTypeScriptV2:28](#){: .copyMe} |
34-
| `ap-southeast-3` | [arn:aws:lambda:ap-southeast-3:094274105915:layer:AWSLambdaPowertoolsTypeScriptV2:28](#){: .copyMe} |
35-
| `ap-southeast-4` | [arn:aws:lambda:ap-southeast-4:094274105915:layer:AWSLambdaPowertoolsTypeScriptV2:28](#){: .copyMe} |
36-
| `ap-southeast-5` | [arn:aws:lambda:ap-southeast-5:094274105915:layer:AWSLambdaPowertoolsTypeScriptV2:28](#){: .copyMe} |
37-
| `ap-southeast-7` | [arn:aws:lambda:ap-southeast-7:094274105915:layer:AWSLambdaPowertoolsTypeScriptV2:28](#){: .copyMe} |
38-
| `eu-central-1` | [arn:aws:lambda:eu-central-1:094274105915:layer:AWSLambdaPowertoolsTypeScriptV2:28](#){: .copyMe} |
39-
| `eu-central-2` | [arn:aws:lambda:eu-central-1:094274105915:layer:AWSLambdaPowertoolsTypeScriptV2:28](#){: .copyMe} |
40-
| `eu-west-1` | [arn:aws:lambda:eu-west-1:094274105915:layer:AWSLambdaPowertoolsTypeScriptV2:28](#){: .copyMe} |
41-
| `eu-west-2` | [arn:aws:lambda:eu-west-2:094274105915:layer:AWSLambdaPowertoolsTypeScriptV2:28](#){: .copyMe} |
42-
| `eu-west-3` | [arn:aws:lambda:eu-west-3:094274105915:layer:AWSLambdaPowertoolsTypeScriptV2:28](#){: .copyMe} |
43-
| `eu-north-1` | [arn:aws:lambda:eu-north-1:094274105915:layer:AWSLambdaPowertoolsTypeScriptV2:28](#){: .copyMe} |
44-
| `eu-south-1` | [arn:aws:lambda:eu-south-1:094274105915:layer:AWSLambdaPowertoolsTypeScriptV2:28](#){: .copyMe} |
45-
| `eu-south-2` | [arn:aws:lambda:eu-south-2:094274105915:layer:AWSLambdaPowertoolsTypeScriptV2:28](#){: .copyMe} |
46-
| `ca-central-1` | [arn:aws:lambda:ca-central-1:094274105915:layer:AWSLambdaPowertoolsTypeScriptV2:28](#){: .copyMe} |
47-
| `ca-west-1` | [arn:aws:lambda:ca-west-1:094274105915:layer:AWSLambdaPowertoolsTypeScriptV2:28](#){: .copyMe} |
48-
| `sa-east-1` | [arn:aws:lambda:sa-east-1:094274105915:layer:AWSLambdaPowertoolsTypeScriptV2:28](#){: .copyMe} |
49-
| `af-south-1` | [arn:aws:lambda:af-south-1:094274105915:layer:AWSLambdaPowertoolsTypeScriptV2:28](#){: .copyMe} |
50-
| `me-south-1` | [arn:aws:lambda:me-south-1:094274105915:layer:AWSLambdaPowertoolsTypeScriptV2:28](#){: .copyMe} |
51-
| `me-central-1` | [arn:aws:lambda:me-central-1:094274105915:layer:AWSLambdaPowertoolsTypeScriptV2:28](#){: .copyMe} |
52-
| `il-central-1` | [arn:aws:lambda:il-central-1:094274105915:layer:AWSLambdaPowertoolsTypeScriptV2:28](#){: .copyMe} |
53-
| `mx-central-1` | [arn:aws:lambda:mx-central-1:094274105915:layer:AWSLambdaPowertoolsTypeScriptV2:28](#){: .copyMe} |
54-
| `us-gov-west-1` | [arn:aws-us-gov:lambda:us-gov-west-1:165093116878:layer:AWSLambdaPowertoolsTypeScriptV2:28](#){: .copyMe} |
55-
| `us-gov-east-1` | [arn:aws-us-gov:lambda:us-gov-east-1:165087284144:layer:AWSLambdaPowertoolsTypeScriptV2:28](#){: .copyMe} |
56-
| `cn-north-1` | [arn:aws-aws-cn:lambda:cn-north-1:498634801083:layer:AWSLambdaPowertoolsTypeScriptV2:28](#){: .copyMe} |
22+
| `us-east-1` | [arn:aws:lambda:us-east-1:094274105915:layer:AWSLambdaPowertoolsTypeScriptV2:29](#){: .copyMe} |
23+
| `us-east-2` | [arn:aws:lambda:us-east-2:094274105915:layer:AWSLambdaPowertoolsTypeScriptV2:29](#){: .copyMe} |
24+
| `us-west-1` | [arn:aws:lambda:us-west-1:094274105915:layer:AWSLambdaPowertoolsTypeScriptV2:29](#){: .copyMe} |
25+
| `us-west-2` | [arn:aws:lambda:us-west-2:094274105915:layer:AWSLambdaPowertoolsTypeScriptV2:29](#){: .copyMe} |
26+
| `ap-south-1` | [arn:aws:lambda:ap-south-1:094274105915:layer:AWSLambdaPowertoolsTypeScriptV2:29](#){: .copyMe} |
27+
| `ap-south-2` | [arn:aws:lambda:ap-south-2:094274105915:layer:AWSLambdaPowertoolsTypeScriptV2:29](#){: .copyMe} |
28+
| `ap-east-1` | [arn:aws:lambda:ap-east-1:094274105915:layer:AWSLambdaPowertoolsTypeScriptV2:29](#){: .copyMe} |
29+
| `ap-northeast-1` | [arn:aws:lambda:ap-northeast-1:094274105915:layer:AWSLambdaPowertoolsTypeScriptV2:29](#){: .copyMe} |
30+
| `ap-northeast-2` | [arn:aws:lambda:ap-northeast-2:094274105915:layer:AWSLambdaPowertoolsTypeScriptV2:29](#){: .copyMe} |
31+
| `ap-northeast-3` | [arn:aws:lambda:ap-northeast-3:094274105915:layer:AWSLambdaPowertoolsTypeScriptV2:29](#){: .copyMe} |
32+
| `ap-southeast-1` | [arn:aws:lambda:ap-southeast-1:094274105915:layer:AWSLambdaPowertoolsTypeScriptV2:29](#){: .copyMe} |
33+
| `ap-southeast-2` | [arn:aws:lambda:ap-southeast-2:094274105915:layer:AWSLambdaPowertoolsTypeScriptV2:29](#){: .copyMe} |
34+
| `ap-southeast-3` | [arn:aws:lambda:ap-southeast-3:094274105915:layer:AWSLambdaPowertoolsTypeScriptV2:29](#){: .copyMe} |
35+
| `ap-southeast-4` | [arn:aws:lambda:ap-southeast-4:094274105915:layer:AWSLambdaPowertoolsTypeScriptV2:29](#){: .copyMe} |
36+
| `ap-southeast-5` | [arn:aws:lambda:ap-southeast-5:094274105915:layer:AWSLambdaPowertoolsTypeScriptV2:29](#){: .copyMe} |
37+
| `ap-southeast-7` | [arn:aws:lambda:ap-southeast-7:094274105915:layer:AWSLambdaPowertoolsTypeScriptV2:29](#){: .copyMe} |
38+
| `eu-central-1` | [arn:aws:lambda:eu-central-1:094274105915:layer:AWSLambdaPowertoolsTypeScriptV2:29](#){: .copyMe} |
39+
| `eu-central-2` | [arn:aws:lambda:eu-central-1:094274105915:layer:AWSLambdaPowertoolsTypeScriptV2:29](#){: .copyMe} |
40+
| `eu-west-1` | [arn:aws:lambda:eu-west-1:094274105915:layer:AWSLambdaPowertoolsTypeScriptV2:29](#){: .copyMe} |
41+
| `eu-west-2` | [arn:aws:lambda:eu-west-2:094274105915:layer:AWSLambdaPowertoolsTypeScriptV2:29](#){: .copyMe} |
42+
| `eu-west-3` | [arn:aws:lambda:eu-west-3:094274105915:layer:AWSLambdaPowertoolsTypeScriptV2:29](#){: .copyMe} |
43+
| `eu-north-1` | [arn:aws:lambda:eu-north-1:094274105915:layer:AWSLambdaPowertoolsTypeScriptV2:29](#){: .copyMe} |
44+
| `eu-south-1` | [arn:aws:lambda:eu-south-1:094274105915:layer:AWSLambdaPowertoolsTypeScriptV2:29](#){: .copyMe} |
45+
| `eu-south-2` | [arn:aws:lambda:eu-south-2:094274105915:layer:AWSLambdaPowertoolsTypeScriptV2:29](#){: .copyMe} |
46+
| `ca-central-1` | [arn:aws:lambda:ca-central-1:094274105915:layer:AWSLambdaPowertoolsTypeScriptV2:29](#){: .copyMe} |
47+
| `ca-west-1` | [arn:aws:lambda:ca-west-1:094274105915:layer:AWSLambdaPowertoolsTypeScriptV2:29](#){: .copyMe} |
48+
| `sa-east-1` | [arn:aws:lambda:sa-east-1:094274105915:layer:AWSLambdaPowertoolsTypeScriptV2:29](#){: .copyMe} |
49+
| `af-south-1` | [arn:aws:lambda:af-south-1:094274105915:layer:AWSLambdaPowertoolsTypeScriptV2:29](#){: .copyMe} |
50+
| `me-south-1` | [arn:aws:lambda:me-south-1:094274105915:layer:AWSLambdaPowertoolsTypeScriptV2:29](#){: .copyMe} |
51+
| `me-central-1` | [arn:aws:lambda:me-central-1:094274105915:layer:AWSLambdaPowertoolsTypeScriptV2:29](#){: .copyMe} |
52+
| `il-central-1` | [arn:aws:lambda:il-central-1:094274105915:layer:AWSLambdaPowertoolsTypeScriptV2:29](#){: .copyMe} |
53+
| `mx-central-1` | [arn:aws:lambda:mx-central-1:094274105915:layer:AWSLambdaPowertoolsTypeScriptV2:29](#){: .copyMe} |
54+
| `us-gov-west-1` | [arn:aws-us-gov:lambda:us-gov-west-1:165093116878:layer:AWSLambdaPowertoolsTypeScriptV2:29](#){: .copyMe} |
55+
| `us-gov-east-1` | [arn:aws-us-gov:lambda:us-gov-east-1:165087284144:layer:AWSLambdaPowertoolsTypeScriptV2:29](#){: .copyMe} |
56+
| `cn-north-1` | [arn:aws-aws-cn:lambda:cn-north-1:498634801083:layer:AWSLambdaPowertoolsTypeScriptV2:29](#){: .copyMe} |
5757

5858
### Lookup Layer ARN via AWS SSM Parameter Store
5959

examples/app/cdk/example-stack.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export class PowertoolsExampleStack extends Stack {
3939
'powertools-layer',
4040
`arn:aws:lambda:${
4141
Stack.of(this).region
42-
}:094274105915:layer:AWSLambdaPowertoolsTypeScriptV2:3`
42+
}:094274105915:layer:AWSLambdaPowertoolsTypeScriptV2:29`
4343
);
4444

4545
// Items table

examples/app/template.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ Resources:
130130
- DynamoDBReadPolicy:
131131
TableName: !Ref itemsTable
132132
Layers:
133-
- !Sub arn:aws:lambda:${AWS::Region}:094274105915:layer:AWSLambdaPowertoolsTypeScriptV2:3
133+
- !Sub arn:aws:lambda:${AWS::Region}:094274105915:layer:AWSLambdaPowertoolsTypeScriptV2:29
134134
Environment:
135135
Variables:
136136
TABLE_NAME: !Ref itemsTable

0 commit comments

Comments
 (0)