Skip to content

Commit 58d3be7

Browse files
committed
chore(layers): bump to 22 for 1.26.3
1 parent 6d6f8fa commit 58d3be7

File tree

1 file changed

+29
-29
lines changed

1 file changed

+29
-29
lines changed

docs/index.md

+29-29
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ A suite of utilities for AWS Lambda functions to ease adopting best practices su
1515

1616
Powertools is available in the following formats:
1717

18-
* **Lambda Layer**: [**arn:aws:lambda:{region}:017000801446:layer:AWSLambdaPowertoolsPython:21**](#){: .copyMe}:clipboard:
18+
* **Lambda Layer**: [**arn:aws:lambda:{region}:017000801446:layer:AWSLambdaPowertoolsPython:22**](#){: .copyMe}:clipboard:
1919
* **PyPi**: **`pip install aws-lambda-powertools`**
2020

2121
???+ hint "Support this project by using Lambda Layers :heart:"
@@ -33,23 +33,23 @@ You can include Lambda Powertools Lambda Layer using [AWS Lambda Console](https:
3333

3434
| Region | Layer ARN |
3535
| ---------------- | -------------------------------------------------------------------------------------------------------- |
36-
| `us-east-1` | [arn:aws:lambda:us-east-1:017000801446:layer:AWSLambdaPowertoolsPython:21](#){: .copyMe}:clipboard: |
37-
| `us-east-2` | [arn:aws:lambda:us-east-2:017000801446:layer:AWSLambdaPowertoolsPython:21](#){: .copyMe}:clipboard: |
38-
| `us-west-1` | [arn:aws:lambda:us-west-1:017000801446:layer:AWSLambdaPowertoolsPython:21](#){: .copyMe}:clipboard: |
39-
| `us-west-2` | [arn:aws:lambda:us-west-2:017000801446:layer:AWSLambdaPowertoolsPython:21](#){: .copyMe}:clipboard: |
40-
| `ap-south-1` | [arn:aws:lambda:ap-south-1:017000801446:layer:AWSLambdaPowertoolsPython:21](#){: .copyMe}:clipboard: |
41-
| `ap-northeast-1` | [arn:aws:lambda:ap-northeast-1:017000801446:layer:AWSLambdaPowertoolsPython:21](#){: .copyMe}:clipboard: |
42-
| `ap-northeast-2` | [arn:aws:lambda:ap-northeast-2:017000801446:layer:AWSLambdaPowertoolsPython:21](#){: .copyMe}:clipboard: |
43-
| `ap-northeast-3` | [arn:aws:lambda:ap-northeast-3:017000801446:layer:AWSLambdaPowertoolsPython:21](#){: .copyMe}:clipboard: |
44-
| `ap-southeast-1` | [arn:aws:lambda:ap-southeast-1:017000801446:layer:AWSLambdaPowertoolsPython:21](#){: .copyMe}:clipboard: |
45-
| `ap-southeast-2` | [arn:aws:lambda:ap-southeast-2:017000801446:layer:AWSLambdaPowertoolsPython:21](#){: .copyMe}:clipboard: |
46-
| `eu-central-1` | [arn:aws:lambda:eu-central-1:017000801446:layer:AWSLambdaPowertoolsPython:21](#){: .copyMe}:clipboard: |
47-
| `eu-west-1` | [arn:aws:lambda:eu-west-1:017000801446:layer:AWSLambdaPowertoolsPython:21](#){: .copyMe}:clipboard: |
48-
| `eu-west-2` | [arn:aws:lambda:eu-west-2:017000801446:layer:AWSLambdaPowertoolsPython:21](#){: .copyMe}:clipboard: |
49-
| `eu-west-3` | [arn:aws:lambda:eu-west-3:017000801446:layer:AWSLambdaPowertoolsPython:21](#){: .copyMe}:clipboard: |
50-
| `eu-north-1` | [arn:aws:lambda:eu-north-1:017000801446:layer:AWSLambdaPowertoolsPython:21](#){: .copyMe}:clipboard: |
51-
| `ca-central-1` | [arn:aws:lambda:ca-central-1:017000801446:layer:AWSLambdaPowertoolsPython:21](#){: .copyMe}:clipboard: |
52-
| `sa-east-1` | [arn:aws:lambda:sa-east-1:017000801446:layer:AWSLambdaPowertoolsPython:21](#){: .copyMe}:clipboard: |
36+
| `us-east-1` | [arn:aws:lambda:us-east-1:017000801446:layer:AWSLambdaPowertoolsPython:22](#){: .copyMe}:clipboard: |
37+
| `us-east-2` | [arn:aws:lambda:us-east-2:017000801446:layer:AWSLambdaPowertoolsPython:22](#){: .copyMe}:clipboard: |
38+
| `us-west-1` | [arn:aws:lambda:us-west-1:017000801446:layer:AWSLambdaPowertoolsPython:22](#){: .copyMe}:clipboard: |
39+
| `us-west-2` | [arn:aws:lambda:us-west-2:017000801446:layer:AWSLambdaPowertoolsPython:22](#){: .copyMe}:clipboard: |
40+
| `ap-south-1` | [arn:aws:lambda:ap-south-1:017000801446:layer:AWSLambdaPowertoolsPython:22](#){: .copyMe}:clipboard: |
41+
| `ap-northeast-1` | [arn:aws:lambda:ap-northeast-1:017000801446:layer:AWSLambdaPowertoolsPython:22](#){: .copyMe}:clipboard: |
42+
| `ap-northeast-2` | [arn:aws:lambda:ap-northeast-2:017000801446:layer:AWSLambdaPowertoolsPython:22](#){: .copyMe}:clipboard: |
43+
| `ap-northeast-3` | [arn:aws:lambda:ap-northeast-3:017000801446:layer:AWSLambdaPowertoolsPython:22](#){: .copyMe}:clipboard: |
44+
| `ap-southeast-1` | [arn:aws:lambda:ap-southeast-1:017000801446:layer:AWSLambdaPowertoolsPython:22](#){: .copyMe}:clipboard: |
45+
| `ap-southeast-2` | [arn:aws:lambda:ap-southeast-2:017000801446:layer:AWSLambdaPowertoolsPython:22](#){: .copyMe}:clipboard: |
46+
| `eu-central-1` | [arn:aws:lambda:eu-central-1:017000801446:layer:AWSLambdaPowertoolsPython:22](#){: .copyMe}:clipboard: |
47+
| `eu-west-1` | [arn:aws:lambda:eu-west-1:017000801446:layer:AWSLambdaPowertoolsPython:22](#){: .copyMe}:clipboard: |
48+
| `eu-west-2` | [arn:aws:lambda:eu-west-2:017000801446:layer:AWSLambdaPowertoolsPython:22](#){: .copyMe}:clipboard: |
49+
| `eu-west-3` | [arn:aws:lambda:eu-west-3:017000801446:layer:AWSLambdaPowertoolsPython:22](#){: .copyMe}:clipboard: |
50+
| `eu-north-1` | [arn:aws:lambda:eu-north-1:017000801446:layer:AWSLambdaPowertoolsPython:22](#){: .copyMe}:clipboard: |
51+
| `ca-central-1` | [arn:aws:lambda:ca-central-1:017000801446:layer:AWSLambdaPowertoolsPython:22](#){: .copyMe}:clipboard: |
52+
| `sa-east-1` | [arn:aws:lambda:sa-east-1:017000801446:layer:AWSLambdaPowertoolsPython:22](#){: .copyMe}:clipboard: |
5353

5454
??? question "Can't find our Lambda Layer for your preferred AWS region?"
5555
You can use [Serverless Application Repository (SAR)](#sar) method, our [CDK Layer Construct](https://github.com/aws-samples/cdk-lambda-powertools-python-layer){target="_blank"}, or PyPi like you normally would for any other library.
@@ -63,7 +63,7 @@ You can include Lambda Powertools Lambda Layer using [AWS Lambda Console](https:
6363
Type: AWS::Serverless::Function
6464
Properties:
6565
Layers:
66-
- !Sub arn:aws:lambda:${AWS::Region}:017000801446:layer:AWSLambdaPowertoolsPython:21
66+
- !Sub arn:aws:lambda:${AWS::Region}:017000801446:layer:AWSLambdaPowertoolsPython:22
6767
```
6868

6969
=== "Serverless framework"
@@ -73,7 +73,7 @@ You can include Lambda Powertools Lambda Layer using [AWS Lambda Console](https:
7373
hello:
7474
handler: lambda_function.lambda_handler
7575
layers:
76-
- arn:aws:lambda:${aws:region}:017000801446:layer:AWSLambdaPowertoolsPython:21
76+
- arn:aws:lambda:${aws:region}:017000801446:layer:AWSLambdaPowertoolsPython:22
7777
```
7878

7979
=== "CDK"
@@ -89,7 +89,7 @@ You can include Lambda Powertools Lambda Layer using [AWS Lambda Console](https:
8989
powertools_layer = aws_lambda.LayerVersion.from_layer_version_arn(
9090
self,
9191
id="lambda-powertools",
92-
layer_version_arn=f"arn:aws:lambda:{env.region}:017000801446:layer:AWSLambdaPowertoolsPython:21"
92+
layer_version_arn=f"arn:aws:lambda:{env.region}:017000801446:layer:AWSLambdaPowertoolsPython:22"
9393
)
9494
aws_lambda.Function(self,
9595
'sample-app-lambda',
@@ -138,7 +138,7 @@ You can include Lambda Powertools Lambda Layer using [AWS Lambda Console](https:
138138
role = aws_iam_role.iam_for_lambda.arn
139139
handler = "index.test"
140140
runtime = "python3.9"
141-
layers = ["arn:aws:lambda:{region}:017000801446:layer:AWSLambdaPowertoolsPython:21"]
141+
layers = ["arn:aws:lambda:{region}:017000801446:layer:AWSLambdaPowertoolsPython:22"]
142142

143143
source_code_hash = filebase64sha256("lambda_function_payload.zip")
144144
}
@@ -157,7 +157,7 @@ You can include Lambda Powertools Lambda Layer using [AWS Lambda Console](https:
157157
? Do you want to configure advanced settings? Yes
158158
...
159159
? Do you want to enable Lambda layers for this function? Yes
160-
? Enter up to 5 existing Lambda layer ARNs (comma-separated): arn:aws:lambda:eu-central-1:017000801446:layer:AWSLambdaPowertoolsPython:21
160+
? Enter up to 5 existing Lambda layer ARNs (comma-separated): arn:aws:lambda:eu-central-1:017000801446:layer:AWSLambdaPowertoolsPython:22
161161
❯ amplify push -y
162162

163163

@@ -168,15 +168,15 @@ You can include Lambda Powertools Lambda Layer using [AWS Lambda Console](https:
168168
- Name: <NAME-OF-FUNCTION>
169169
? Which setting do you want to update? Lambda layers configuration
170170
? Do you want to enable Lambda layers for this function? Yes
171-
? Enter up to 5 existing Lambda layer ARNs (comma-separated): arn:aws:lambda:eu-central-1:017000801446:layer:AWSLambdaPowertoolsPython:21
171+
? Enter up to 5 existing Lambda layer ARNs (comma-separated): arn:aws:lambda:eu-central-1:017000801446:layer:AWSLambdaPowertoolsPython:22
172172
? Do you want to edit the local lambda function now? No
173173
```
174174

175175
=== "Get the Layer .zip contents"
176176
Change {region} to your AWS region, e.g. `eu-west-1`
177177

178178
```bash title="AWS CLI"
179-
aws lambda get-layer-version-by-arn --arn arn:aws:lambda:{region}:017000801446:layer:AWSLambdaPowertoolsPython:21 --region {region}
179+
aws lambda get-layer-version-by-arn --arn arn:aws:lambda:{region}:017000801446:layer:AWSLambdaPowertoolsPython:22 --region {region}
180180
```
181181

182182
The pre-signed URL to download this Lambda Layer will be within `Location` key.
@@ -214,7 +214,7 @@ If using SAM, you can include this SAR App as part of your shared Layers stack,
214214
Properties:
215215
Location:
216216
ApplicationId: arn:aws:serverlessrepo:eu-west-1:057560766410:applications/aws-lambda-powertools-python-layer
217-
SemanticVersion: 1.25.10 # change to latest semantic version available in SAR
217+
SemanticVersion: 1.26.3 # change to latest semantic version available in SAR
218218

219219
MyLambdaFunction:
220220
Type: AWS::Serverless::Function
@@ -242,7 +242,7 @@ If using SAM, you can include this SAR App as part of your shared Layers stack,
242242
Location:
243243
ApplicationId: arn:aws:serverlessrepo:eu-west-1:057560766410:applications/aws-lambda-powertools-python-layer
244244
# Find latest from github.com/awslabs/aws-lambda-powertools-python/releases
245-
SemanticVersion: 1.25.10
245+
SemanticVersion: 1.26.3
246246
```
247247

248248
=== "CDK"
@@ -252,7 +252,7 @@ If using SAM, you can include this SAR App as part of your shared Layers stack,
252252

253253
POWERTOOLS_BASE_NAME = 'AWSLambdaPowertools'
254254
# Find latest from github.com/awslabs/aws-lambda-powertools-python/releases
255-
POWERTOOLS_VER = '1.23.0'
255+
POWERTOOLS_VER = '1.26.3'
256256
POWERTOOLS_ARN = 'arn:aws:serverlessrepo:eu-west-1:057560766410:applications/aws-lambda-powertools-python-layer'
257257

258258
class SampleApp(core.Construct):
@@ -316,7 +316,7 @@ If using SAM, you can include this SAR App as part of your shared Layers stack,
316316

317317
variable "aws_powertools_version" {
318318
type = string
319-
default = "1.20.2"
319+
default = "1.26.3"
320320
description = "The AWS Powertools release version"
321321
}
322322

0 commit comments

Comments
 (0)