Skip to content

Commit 276c098

Browse files
docs(layer): update layer version number (#5344)
Updating the documentation
1 parent 1d92394 commit 276c098

19 files changed

+302
-302
lines changed

Diff for: docs/includes/_layer_homepage_arm64.md

+135-135
Large diffs are not rendered by default.

Diff for: docs/includes/_layer_homepage_x86.md

+145-145
Large diffs are not rendered by default.

Diff for: docs/index.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ You can install Powertools for AWS Lambda (Python) using your favorite dependenc
6969

7070
| Architecture | Layer ARN |
7171
| ------------ | --------------------------------------------------------------------------------------------------------- |
72-
| x86_64 | __arn:aws:lambda:{region}:017000801446:layer:AWSLambdaPowertoolsPythonV3-{python_version}-x86_64:1__{: .copyMe}:clipboard: |
73-
| ARM | __arn:aws:lambda:{region}:017000801446:layer:AWSLambdaPowertoolsPythonV3-{python_version}-arm64:1__{: .copyMe}:clipboard: |
72+
| x86_64 | __arn:aws:lambda:{region}:017000801446:layer:AWSLambdaPowertoolsPythonV3-{python_version}-x86_64:2__{: .copyMe}:clipboard: |
73+
| ARM | __arn:aws:lambda:{region}:017000801446:layer:AWSLambdaPowertoolsPythonV3-{python_version}-arm64:2__{: .copyMe}:clipboard: |
7474

7575
=== "AWS Console"
7676

@@ -166,7 +166,7 @@ You can install Powertools for AWS Lambda (Python) using your favorite dependenc
166166
You can use AWS CLI to generate a pre-signed URL to download the contents of our Lambda Layer.
167167

168168
```bash title="AWS CLI command to download Lambda Layer content"
169-
aws lambda get-layer-version-by-arn --arn arn:aws:lambda:eu-west-1:017000801446:layer:AWSLambdaPowertoolsPythonV3-python312-x86_64:1 --region eu-west-1
169+
aws lambda get-layer-version-by-arn --arn arn:aws:lambda:eu-west-1:017000801446:layer:AWSLambdaPowertoolsPythonV3-python312-x86_64:2 --region eu-west-1
170170
```
171171

172172
You'll find the pre-signed URL under `Location` key as part of the CLI command output.
@@ -260,7 +260,7 @@ In this context, `[aws-sdk]` is an alias to the `boto3` package. Due to dependen
260260
The pre-signed URL to download this Lambda Layer will be within `Location` key in the CLI output. The CLI output will also contain the Powertools for AWS Lambda version it contains.
261261

262262
```bash title="AWS CLI command to download Lambda Layer content"
263-
aws lambda get-layer-version-by-arn --arn arn:aws:lambda:eu-west-1:017000801446:layer:AWSLambdaPowertoolsPythonV3-python312-x86_64:1 --region eu-west-1
263+
aws lambda get-layer-version-by-arn --arn arn:aws:lambda:eu-west-1:017000801446:layer:AWSLambdaPowertoolsPythonV3-python312-x86_64:2 --region eu-west-1
264264
```
265265

266266
#### SAR

Diff for: examples/homepage/install/arm64/amplify.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
? Do you want to configure advanced settings? Yes
77
...
88
? Do you want to enable Lambda layers for this function? Yes
9-
? Enter up to 5 existing Lambda layer ARNs (comma-separated): arn:aws:lambda:eu-central-1:017000801446:layer:AWSLambdaPowertoolsPythonV3-python312-arm64:1
9+
? Enter up to 5 existing Lambda layer ARNs (comma-separated): arn:aws:lambda:eu-central-1:017000801446:layer:AWSLambdaPowertoolsPythonV3-python312-arm64:2
1010
❯ amplify push -y
1111

1212

@@ -17,5 +17,5 @@ General information
1717
- Name: <NAME-OF-FUNCTION>
1818
? Which setting do you want to update? Lambda layers configuration
1919
? Do you want to enable Lambda layers for this function? Yes
20-
? Enter up to 5 existing Lambda layer ARNs (comma-separated): arn:aws:lambda:eu-central-1:017000801446:layer:AWSLambdaPowertoolsPythonV3-python312-arm64:1
20+
? Enter up to 5 existing Lambda layer ARNs (comma-separated): arn:aws:lambda:eu-central-1:017000801446:layer:AWSLambdaPowertoolsPythonV3-python312-arm64:2
2121
? Do you want to edit the local lambda function now? No

Diff for: examples/homepage/install/arm64/cdk_arm64.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def __init__(self, scope: Construct, construct_id: str, **kwargs) -> None:
1010
powertools_layer = aws_lambda.LayerVersion.from_layer_version_arn(
1111
self,
1212
id="lambda-powertools",
13-
layer_version_arn=f"arn:aws:lambda:{Aws.REGION}:017000801446:layer:AWSLambdaPowertoolsPythonV3-python312-arm64:1",
13+
layer_version_arn=f"arn:aws:lambda:{Aws.REGION}:017000801446:layer:AWSLambdaPowertoolsPythonV3-python312-arm64:2",
1414
)
1515
aws_lambda.Function(
1616
self,

Diff for: examples/homepage/install/arm64/pulumi_arm64.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
pulumi.Output.concat(
2323
"arn:aws:lambda:",
2424
aws.get_region_output().name,
25-
":017000801446:layer:AWSLambdaPowertoolsPythonV3-python312-arm64:1",
25+
":017000801446:layer:AWSLambdaPowertoolsPythonV3-python312-arm64:2",
2626
),
2727
],
2828
tracing_config={"mode": "Active"},

Diff for: examples/homepage/install/arm64/sam.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ Resources:
99
Runtime: python3.12
1010
Handler: app.lambda_handler
1111
Layers:
12-
- !Sub arn:aws:lambda:${AWS::Region}:017000801446:layer:AWSLambdaPowertoolsPythonV3-python312-arm64:1
12+
- !Sub arn:aws:lambda:${AWS::Region}:017000801446:layer:AWSLambdaPowertoolsPythonV3-python312-arm64:2

Diff for: examples/homepage/install/arm64/serverless.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ functions:
1010
handler: lambda_function.lambda_handler
1111
architecture: arm64
1212
layers:
13-
- arn:aws:lambda:${aws:region}:017000801446:layer:AWSLambdaPowertoolsPythonV3-python312-arm64:1
13+
- arn:aws:lambda:${aws:region}:017000801446:layer:AWSLambdaPowertoolsPythonV3-python312-arm64:2

Diff for: examples/homepage/install/arm64/terraform.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ resource "aws_lambda_function" "test_lambda" {
3434
role = aws_iam_role.iam_for_lambda.arn
3535
handler = "index.test"
3636
runtime = "python3.12"
37-
layers = ["arn:aws:lambda:{region}:017000801446:layer:AWSLambdaPowertoolsPythonV3-python312-arm64:1"]
37+
layers = ["arn:aws:lambda:{region}:017000801446:layer:AWSLambdaPowertoolsPythonV3-python312-arm64:2"]
3838
architectures = ["arm64"]
3939

4040
source_code_hash = filebase64sha256("lambda_function_payload.zip")

Diff for: examples/homepage/install/x86_64/amplify.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
? Do you want to configure advanced settings? Yes
77
...
88
? Do you want to enable Lambda layers for this function? Yes
9-
? Enter up to 5 existing Lambda layer ARNs (comma-separated): arn:aws:lambda:eu-central-1:017000801446:layer:AWSLambdaPowertoolsPythonV3-python312-x86_64:1
9+
? Enter up to 5 existing Lambda layer ARNs (comma-separated): arn:aws:lambda:eu-central-1:017000801446:layer:AWSLambdaPowertoolsPythonV3-python312-x86_64:2
1010
❯ amplify push -y
1111

1212

@@ -17,5 +17,5 @@ General information
1717
- Name: <NAME-OF-FUNCTION>
1818
? Which setting do you want to update? Lambda layers configuration
1919
? Do you want to enable Lambda layers for this function? Yes
20-
? Enter up to 5 existing Lambda layer ARNs (comma-separated): arn:aws:lambda:eu-central-1:017000801446:layer:AWSLambdaPowertoolsPythonV3-python312-x86_64:1
20+
? Enter up to 5 existing Lambda layer ARNs (comma-separated): arn:aws:lambda:eu-central-1:017000801446:layer:AWSLambdaPowertoolsPythonV3-python312-x86_64:2
2121
? Do you want to edit the local lambda function now? No

Diff for: examples/homepage/install/x86_64/cdk_x86.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def __init__(self, scope: Construct, construct_id: str, **kwargs) -> None:
1010
powertools_layer = aws_lambda.LayerVersion.from_layer_version_arn(
1111
self,
1212
id="lambda-powertools",
13-
layer_version_arn=f"arn:aws:lambda:{Aws.REGION}:017000801446:layer:AWSLambdaPowertoolsPythonV3-python312-x86_64:1",
13+
layer_version_arn=f"arn:aws:lambda:{Aws.REGION}:017000801446:layer:AWSLambdaPowertoolsPythonV3-python312-x86_64:2",
1414
)
1515
aws_lambda.Function(
1616
self,

Diff for: examples/homepage/install/x86_64/pulumi_x86.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
pulumi.Output.concat(
2323
"arn:aws:lambda:",
2424
aws.get_region_output().name,
25-
":017000801446:layer:AWSLambdaPowertoolsPythonV3-python312-x86_64:1",
25+
":017000801446:layer:AWSLambdaPowertoolsPythonV3-python312-x86_64:2",
2626
),
2727
],
2828
tracing_config={"mode": "Active"},

Diff for: examples/homepage/install/x86_64/sam.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ Resources:
88
Runtime: python3.12
99
Handler: app.lambda_handler
1010
Layers:
11-
- !Sub arn:aws:lambda:${AWS::Region}:017000801446:layer:AWSLambdaPowertoolsPythonV3-python312-x86_64:1
11+
- !Sub arn:aws:lambda:${AWS::Region}:017000801446:layer:AWSLambdaPowertoolsPythonV3-python312-x86_64:2

Diff for: examples/homepage/install/x86_64/serverless.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ functions:
1010
handler: lambda_function.lambda_handler
1111
architecture: arm64
1212
layers:
13-
- arn:aws:lambda:${aws:region}:017000801446:layer:AWSLambdaPowertoolsPythonV3-python312-x86_64:1
13+
- arn:aws:lambda:${aws:region}:017000801446:layer:AWSLambdaPowertoolsPythonV3-python312-x86_64:2

Diff for: examples/homepage/install/x86_64/terraform.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ resource "aws_lambda_function" "test_lambda" {
3434
role = aws_iam_role.iam_for_lambda.arn
3535
handler = "index.test"
3636
runtime = "python3.12"
37-
layers = ["arn:aws:lambda:{region}:017000801446:layer:AWSLambdaPowertoolsPythonV3-python312-x86_64:1"]
37+
layers = ["arn:aws:lambda:{region}:017000801446:layer:AWSLambdaPowertoolsPythonV3-python312-x86_64:2"]
3838

3939
source_code_hash = filebase64sha256("lambda_function_payload.zip")
4040
}

Diff for: examples/logger/sam/template.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Globals:
1414
Layers:
1515
# Find the latest Layer version in the official documentation
1616
# https://docs.powertools.aws.dev/lambda/python/latest/#lambda-layer
17-
- !Sub arn:aws:lambda:${AWS::Region}:017000801446:layer:AWSLambdaPowertoolsPythonV3-python312-x86_64:1
17+
- !Sub arn:aws:lambda:${AWS::Region}:017000801446:layer:AWSLambdaPowertoolsPythonV3-python312-x86_64:2
1818

1919
Resources:
2020
LoggerLambdaHandlerExample:

Diff for: examples/metrics/sam/template.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Globals:
1515
Layers:
1616
# Find the latest Layer version in the official documentation
1717
# https://docs.powertools.aws.dev/lambda/python/latest/#lambda-layer
18-
- !Sub arn:aws:lambda:${AWS::Region}:017000801446:layer:AWSLambdaPowertoolsPythonV3-python312-x86_64:1
18+
- !Sub arn:aws:lambda:${AWS::Region}:017000801446:layer:AWSLambdaPowertoolsPythonV3-python312-x86_64:2
1919

2020
Resources:
2121
CaptureLambdaHandlerExample:

Diff for: examples/metrics_datadog/sam/template.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Globals:
2020
Layers:
2121
# Find the latest Layer version in the official documentation
2222
# https://docs.powertools.aws.dev/lambda/python/latest/#lambda-layer
23-
- !Sub arn:aws:lambda:${AWS::Region}:017000801446:layer:AWSLambdaPowertoolsPythonV3-python312-x86_64:1
23+
- !Sub arn:aws:lambda:${AWS::Region}:017000801446:layer:AWSLambdaPowertoolsPythonV3-python312-x86_64:2
2424
# Find the latest Layer version in the Datadog official documentation
2525

2626
# Datadog SDK

Diff for: examples/tracer/sam/template.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Globals:
1313
Layers:
1414
# Find the latest Layer version in the official documentation
1515
# https://docs.powertools.aws.dev/lambda/python/latest/#lambda-layer
16-
- !Sub arn:aws:lambda:${AWS::Region}:017000801446:layer:AWSLambdaPowertoolsPythonV3-python312-x86_64:1
16+
- !Sub arn:aws:lambda:${AWS::Region}:017000801446:layer:AWSLambdaPowertoolsPythonV3-python312-x86_64:2
1717

1818
Resources:
1919
CaptureLambdaHandlerExample:

0 commit comments

Comments
 (0)