@@ -14,7 +14,7 @@ A suite of utilities for AWS Lambda functions to ease adopting best practices su
14
14
15
15
Powertools is available in the following formats:
16
16
17
- * ** Lambda Layer** : [ ** arn:aws:lambda:{region}:017000801446:layer:AWSLambdaPowertoolsPython:16 :clipboard : ** ] ( # ) {: .copyMe}
17
+ * ** Lambda Layer** : [ ** arn:aws:lambda:{region}:017000801446:layer:AWSLambdaPowertoolsPython:17 :clipboard : ** ] ( # ) {: .copyMe}
18
18
* ** PyPi** : ** ` pip install aws-lambda-powertools ` **
19
19
20
20
???+ 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:
33
33
34
34
| Region | Layer ARN
35
35
|--------------------------- | ---------------------------
36
- | `us-east-1` | [arn:aws:lambda:us-east-1:017000801446:layer:AWSLambdaPowertoolsPython:16 :clipboard:](#){: .copyMe}
37
- | `us-east-2` | [arn:aws:lambda:us-east-2:017000801446:layer:AWSLambdaPowertoolsPython:16 :clipboard:](#){: .copyMe}
38
- | `us-west-1` | [arn:aws:lambda:us-west-1:017000801446:layer:AWSLambdaPowertoolsPython:16 :clipboard:](#){: .copyMe}
39
- | `us-west-2` | [arn:aws:lambda:us-west-2:017000801446:layer:AWSLambdaPowertoolsPython:16 :clipboard:](#){: .copyMe}
40
- | `ap-south-1` | [arn:aws:lambda:ap-south-1:017000801446:layer:AWSLambdaPowertoolsPython:16 :clipboard:](#){: .copyMe}
41
- | `ap-northeast-1` | [arn:aws:lambda:ap-northeast-1:017000801446:layer:AWSLambdaPowertoolsPython:16 :clipboard:](#){: .copyMe}
42
- | `ap-northeast-2` | [arn:aws:lambda:ap-northeast-2:017000801446:layer:AWSLambdaPowertoolsPython:16 :clipboard:](#){: .copyMe}
43
- | `ap-northeast-3` | [arn:aws:lambda:ap-northeast-3:017000801446:layer:AWSLambdaPowertoolsPython:16 :clipboard:](#){: .copyMe}
44
- | `ap-southeast-1` | [arn:aws:lambda:ap-southeast-1:017000801446:layer:AWSLambdaPowertoolsPython:16 :clipboard:](#){: .copyMe}
45
- | `ap-southeast-2` | [arn:aws:lambda:ap-southeast-2:017000801446:layer:AWSLambdaPowertoolsPython:16 :clipboard:](#){: .copyMe}
46
- | `eu-central-1` | [arn:aws:lambda:eu-central-1:017000801446:layer:AWSLambdaPowertoolsPython:16 :clipboard:](#){: .copyMe}
47
- | `eu-west-1` | [arn:aws:lambda:eu-west-1:017000801446:layer:AWSLambdaPowertoolsPython:16 :clipboard:](#){: .copyMe}
48
- | `eu-west-2` | [arn:aws:lambda:eu-west-2:017000801446:layer:AWSLambdaPowertoolsPython:16 :clipboard:](#){: .copyMe}
49
- | `eu-west-3` | [arn:aws:lambda:eu-west-3:017000801446:layer:AWSLambdaPowertoolsPython:16 :clipboard:](#){: .copyMe}
50
- | `eu-north-1` | [arn:aws:lambda:eu-north-1:017000801446:layer:AWSLambdaPowertoolsPython:16 :clipboard:](#){: .copyMe}
51
- | `ca-central-1` | [arn:aws:lambda:ca-central-1:017000801446:layer:AWSLambdaPowertoolsPython:16 :clipboard:](#){: .copyMe}
52
- | `sa-east-1` | [arn:aws:lambda:sa-east-1:017000801446:layer:AWSLambdaPowertoolsPython:16 :clipboard:](#){: .copyMe}
36
+ | `us-east-1` | [arn:aws:lambda:us-east-1:017000801446:layer:AWSLambdaPowertoolsPython:17 :clipboard:](#){: .copyMe}
37
+ | `us-east-2` | [arn:aws:lambda:us-east-2:017000801446:layer:AWSLambdaPowertoolsPython:17 :clipboard:](#){: .copyMe}
38
+ | `us-west-1` | [arn:aws:lambda:us-west-1:017000801446:layer:AWSLambdaPowertoolsPython:17 :clipboard:](#){: .copyMe}
39
+ | `us-west-2` | [arn:aws:lambda:us-west-2:017000801446:layer:AWSLambdaPowertoolsPython:17 :clipboard:](#){: .copyMe}
40
+ | `ap-south-1` | [arn:aws:lambda:ap-south-1:017000801446:layer:AWSLambdaPowertoolsPython:17 :clipboard:](#){: .copyMe}
41
+ | `ap-northeast-1` | [arn:aws:lambda:ap-northeast-1:017000801446:layer:AWSLambdaPowertoolsPython:17 :clipboard:](#){: .copyMe}
42
+ | `ap-northeast-2` | [arn:aws:lambda:ap-northeast-2:017000801446:layer:AWSLambdaPowertoolsPython:17 :clipboard:](#){: .copyMe}
43
+ | `ap-northeast-3` | [arn:aws:lambda:ap-northeast-3:017000801446:layer:AWSLambdaPowertoolsPython:17 :clipboard:](#){: .copyMe}
44
+ | `ap-southeast-1` | [arn:aws:lambda:ap-southeast-1:017000801446:layer:AWSLambdaPowertoolsPython:17 :clipboard:](#){: .copyMe}
45
+ | `ap-southeast-2` | [arn:aws:lambda:ap-southeast-2:017000801446:layer:AWSLambdaPowertoolsPython:17 :clipboard:](#){: .copyMe}
46
+ | `eu-central-1` | [arn:aws:lambda:eu-central-1:017000801446:layer:AWSLambdaPowertoolsPython:17 :clipboard:](#){: .copyMe}
47
+ | `eu-west-1` | [arn:aws:lambda:eu-west-1:017000801446:layer:AWSLambdaPowertoolsPython:17 :clipboard:](#){: .copyMe}
48
+ | `eu-west-2` | [arn:aws:lambda:eu-west-2:017000801446:layer:AWSLambdaPowertoolsPython:17 :clipboard:](#){: .copyMe}
49
+ | `eu-west-3` | [arn:aws:lambda:eu-west-3:017000801446:layer:AWSLambdaPowertoolsPython:17 :clipboard:](#){: .copyMe}
50
+ | `eu-north-1` | [arn:aws:lambda:eu-north-1:017000801446:layer:AWSLambdaPowertoolsPython:17 :clipboard:](#){: .copyMe}
51
+ | `ca-central-1` | [arn:aws:lambda:ca-central-1:017000801446:layer:AWSLambdaPowertoolsPython:17 :clipboard:](#){: .copyMe}
52
+ | `sa-east-1` | [arn:aws:lambda:sa-east-1:017000801446:layer:AWSLambdaPowertoolsPython:17 :clipboard:](#){: .copyMe}
53
53
54
54
??? question "Can't find our Lambda Layer for your preferred AWS region?"
55
55
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:
63
63
Type: AWS::Serverless::Function
64
64
Properties:
65
65
Layers:
66
- - !Sub arn:aws:lambda:${AWS::Region}:017000801446:layer:AWSLambdaPowertoolsPython:16
66
+ - !Sub arn:aws:lambda:${AWS::Region}:017000801446:layer:AWSLambdaPowertoolsPython:17
67
67
```
68
68
69
69
=== "Serverless framework"
@@ -73,7 +73,7 @@ You can include Lambda Powertools Lambda Layer using [AWS Lambda Console](https:
73
73
hello:
74
74
handler: lambda_function.lambda_handler
75
75
layers:
76
- - arn:aws:lambda:${aws:region}:017000801446:layer:AWSLambdaPowertoolsPython:16
76
+ - arn:aws:lambda:${aws:region}:017000801446:layer:AWSLambdaPowertoolsPython:17
77
77
```
78
78
79
79
=== "CDK"
@@ -89,7 +89,7 @@ You can include Lambda Powertools Lambda Layer using [AWS Lambda Console](https:
89
89
powertools_layer = aws_lambda.LayerVersion.from_layer_version_arn(
90
90
self,
91
91
id="lambda-powertools",
92
- layer_version_arn=f"arn:aws:lambda:{env.region}:017000801446:layer:AWSLambdaPowertoolsPython:16 "
92
+ layer_version_arn=f"arn:aws:lambda:{env.region}:017000801446:layer:AWSLambdaPowertoolsPython:17 "
93
93
)
94
94
aws_lambda.Function(self,
95
95
'sample-app-lambda',
@@ -138,7 +138,7 @@ You can include Lambda Powertools Lambda Layer using [AWS Lambda Console](https:
138
138
role = aws_iam_role.iam_for_lambda.arn
139
139
handler = "index.test"
140
140
runtime = "python3.9"
141
- layers = ["arn:aws:lambda:{region}:017000801446:layer:AWSLambdaPowertoolsPython:16 "]
141
+ layers = ["arn:aws:lambda:{region}:017000801446:layer:AWSLambdaPowertoolsPython:17 "]
142
142
143
143
source_code_hash = filebase64sha256("lambda_function_payload.zip")
144
144
}
@@ -157,7 +157,7 @@ You can include Lambda Powertools Lambda Layer using [AWS Lambda Console](https:
157
157
? Do you want to configure advanced settings? Yes
158
158
...
159
159
? 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:16
160
+ ? Enter up to 5 existing Lambda layer ARNs (comma-separated): arn:aws:lambda:eu-central-1:017000801446:layer:AWSLambdaPowertoolsPython:17
161
161
❯ amplify push -y
162
162
163
163
@@ -168,15 +168,15 @@ You can include Lambda Powertools Lambda Layer using [AWS Lambda Console](https:
168
168
- Name: <NAME-OF-FUNCTION>
169
169
? Which setting do you want to update? Lambda layers configuration
170
170
? 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:16
171
+ ? Enter up to 5 existing Lambda layer ARNs (comma-separated): arn:aws:lambda:eu-central-1:017000801446:layer:AWSLambdaPowertoolsPython:17
172
172
? Do you want to edit the local lambda function now? No
173
173
```
174
174
175
175
=== "Get the Layer .zip contents"
176
176
Change {region} to your AWS region, e.g. ` eu-west-1 `
177
177
178
178
```bash title="AWS CLI"
179
- aws lambda get-layer-version-by-arn --arn arn:aws:lambda:{region}:017000801446:layer:AWSLambdaPowertoolsPython:16 --region {region}
179
+ aws lambda get-layer-version-by-arn --arn arn:aws:lambda:{region}:017000801446:layer:AWSLambdaPowertoolsPython:17 --region {region}
180
180
```
181
181
182
182
The pre-signed URL to download this Lambda Layer will be within `Location` key.
0 commit comments