@@ -14,7 +14,7 @@ A suite of utilities for AWS Lambda functions to ease adopting best practices su
1414
1515Powertools is available in the following formats:
1616
17- * ** Lambda Layer** : [ ** arn:aws:lambda:{region}:017000801446:layer:AWSLambdaPowertoolsPython:36 ** ] ( # ) {: .copyMe}:clipboard :
17+ * ** Lambda Layer** : [ ** arn:aws:lambda:{region}:017000801446:layer:AWSLambdaPowertoolsPython:37 ** ] ( # ) {: .copyMe}:clipboard :
1818* ** PyPi** : ** ` pip install aws-lambda-powertools ` **
1919
2020???+ hint "Support this project by using Lambda Layers :heart : "
@@ -32,28 +32,28 @@ You can include Lambda Powertools Lambda Layer using [AWS Lambda Console](https:
3232
3333 | Region | Layer ARN |
3434 | ---------------- | -------------------------------------------------------------------------------------------------------- |
35- | `af-south-1` | [arn:aws:lambda:af-south-1:017000801446:layer:AWSLambdaPowertoolsPython:36 ](#){: .copyMe}:clipboard: |
36- | `ap-east-1` | [arn:aws:lambda:ap-east-1:017000801446:layer:AWSLambdaPowertoolsPython:36 ](#){: .copyMe}:clipboard: |
37- | `ap-northeast-1` | [arn:aws:lambda:ap-northeast-1:017000801446:layer:AWSLambdaPowertoolsPython:36 ](#){: .copyMe}:clipboard: |
38- | `ap-northeast-2` | [arn:aws:lambda:ap-northeast-2:017000801446:layer:AWSLambdaPowertoolsPython:36 ](#){: .copyMe}:clipboard: |
39- | `ap-northeast-3` | [arn:aws:lambda:ap-northeast-3:017000801446:layer:AWSLambdaPowertoolsPython:36 ](#){: .copyMe}:clipboard: |
40- | `ap-south-1` | [arn:aws:lambda:ap-south-1:017000801446:layer:AWSLambdaPowertoolsPython:36 ](#){: .copyMe}:clipboard: |
41- | `ap-southeast-1` | [arn:aws:lambda:ap-southeast-1:017000801446:layer:AWSLambdaPowertoolsPython:36 ](#){: .copyMe}:clipboard: |
42- | `ap-southeast-2` | [arn:aws:lambda:ap-southeast-2:017000801446:layer:AWSLambdaPowertoolsPython:36 ](#){: .copyMe}:clipboard: |
43- | `ap-southeast-3` | [arn:aws:lambda:ap-southeast-3:017000801446:layer:AWSLambdaPowertoolsPython:36 ](#){: .copyMe}:clipboard: |
44- | `ca-central-1` | [arn:aws:lambda:ca-central-1:017000801446:layer:AWSLambdaPowertoolsPython:36 ](#){: .copyMe}:clipboard: |
45- | `eu-central-1` | [arn:aws:lambda:eu-central-1:017000801446:layer:AWSLambdaPowertoolsPython:36 ](#){: .copyMe}:clipboard: |
46- | `eu-north-1` | [arn:aws:lambda:eu-north-1:017000801446:layer:AWSLambdaPowertoolsPython:36 ](#){: .copyMe}:clipboard: |
47- | `eu-south-1` | [arn:aws:lambda:eu-south-1:017000801446:layer:AWSLambdaPowertoolsPython:36 ](#){: .copyMe}:clipboard: |
48- | `eu-west-1` | [arn:aws:lambda:eu-west-1:017000801446:layer:AWSLambdaPowertoolsPython:36 ](#){: .copyMe}:clipboard: |
49- | `eu-west-2` | [arn:aws:lambda:eu-west-2:017000801446:layer:AWSLambdaPowertoolsPython:36 ](#){: .copyMe}:clipboard: |
50- | `eu-west-3` | [arn:aws:lambda:eu-west-3:017000801446:layer:AWSLambdaPowertoolsPython:36 ](#){: .copyMe}:clipboard: |
51- | `me-south-1` | [arn:aws:lambda:me-south-1:017000801446:layer:AWSLambdaPowertoolsPython:36 ](#){: .copyMe}:clipboard: |
52- | `sa-east-1` | [arn:aws:lambda:sa-east-1:017000801446:layer:AWSLambdaPowertoolsPython:36 ](#){: .copyMe}:clipboard: |
53- | `us-east-1` | [arn:aws:lambda:us-east-1:017000801446:layer:AWSLambdaPowertoolsPython:36 ](#){: .copyMe}:clipboard: |
54- | `us-east-2` | [arn:aws:lambda:us-east-2:017000801446:layer:AWSLambdaPowertoolsPython:36 ](#){: .copyMe}:clipboard: |
55- | `us-west-1` | [arn:aws:lambda:us-west-1:017000801446:layer:AWSLambdaPowertoolsPython:36 ](#){: .copyMe}:clipboard: |
56- | `us-west-2` | [arn:aws:lambda:us-west-2:017000801446:layer:AWSLambdaPowertoolsPython:36 ](#){: .copyMe}:clipboard: |
35+ | `af-south-1` | [arn:aws:lambda:af-south-1:017000801446:layer:AWSLambdaPowertoolsPython:37 ](#){: .copyMe}:clipboard: |
36+ | `ap-east-1` | [arn:aws:lambda:ap-east-1:017000801446:layer:AWSLambdaPowertoolsPython:37 ](#){: .copyMe}:clipboard: |
37+ | `ap-northeast-1` | [arn:aws:lambda:ap-northeast-1:017000801446:layer:AWSLambdaPowertoolsPython:37 ](#){: .copyMe}:clipboard: |
38+ | `ap-northeast-2` | [arn:aws:lambda:ap-northeast-2:017000801446:layer:AWSLambdaPowertoolsPython:37 ](#){: .copyMe}:clipboard: |
39+ | `ap-northeast-3` | [arn:aws:lambda:ap-northeast-3:017000801446:layer:AWSLambdaPowertoolsPython:37 ](#){: .copyMe}:clipboard: |
40+ | `ap-south-1` | [arn:aws:lambda:ap-south-1:017000801446:layer:AWSLambdaPowertoolsPython:37 ](#){: .copyMe}:clipboard: |
41+ | `ap-southeast-1` | [arn:aws:lambda:ap-southeast-1:017000801446:layer:AWSLambdaPowertoolsPython:37 ](#){: .copyMe}:clipboard: |
42+ | `ap-southeast-2` | [arn:aws:lambda:ap-southeast-2:017000801446:layer:AWSLambdaPowertoolsPython:37 ](#){: .copyMe}:clipboard: |
43+ | `ap-southeast-3` | [arn:aws:lambda:ap-southeast-3:017000801446:layer:AWSLambdaPowertoolsPython:37 ](#){: .copyMe}:clipboard: |
44+ | `ca-central-1` | [arn:aws:lambda:ca-central-1:017000801446:layer:AWSLambdaPowertoolsPython:37 ](#){: .copyMe}:clipboard: |
45+ | `eu-central-1` | [arn:aws:lambda:eu-central-1:017000801446:layer:AWSLambdaPowertoolsPython:37 ](#){: .copyMe}:clipboard: |
46+ | `eu-north-1` | [arn:aws:lambda:eu-north-1:017000801446:layer:AWSLambdaPowertoolsPython:37 ](#){: .copyMe}:clipboard: |
47+ | `eu-south-1` | [arn:aws:lambda:eu-south-1:017000801446:layer:AWSLambdaPowertoolsPython:37 ](#){: .copyMe}:clipboard: |
48+ | `eu-west-1` | [arn:aws:lambda:eu-west-1:017000801446:layer:AWSLambdaPowertoolsPython:37 ](#){: .copyMe}:clipboard: |
49+ | `eu-west-2` | [arn:aws:lambda:eu-west-2:017000801446:layer:AWSLambdaPowertoolsPython:37 ](#){: .copyMe}:clipboard: |
50+ | `eu-west-3` | [arn:aws:lambda:eu-west-3:017000801446:layer:AWSLambdaPowertoolsPython:37 ](#){: .copyMe}:clipboard: |
51+ | `me-south-1` | [arn:aws:lambda:me-south-1:017000801446:layer:AWSLambdaPowertoolsPython:37 ](#){: .copyMe}:clipboard: |
52+ | `sa-east-1` | [arn:aws:lambda:sa-east-1:017000801446:layer:AWSLambdaPowertoolsPython:37 ](#){: .copyMe}:clipboard: |
53+ | `us-east-1` | [arn:aws:lambda:us-east-1:017000801446:layer:AWSLambdaPowertoolsPython:37 ](#){: .copyMe}:clipboard: |
54+ | `us-east-2` | [arn:aws:lambda:us-east-2:017000801446:layer:AWSLambdaPowertoolsPython:37 ](#){: .copyMe}:clipboard: |
55+ | `us-west-1` | [arn:aws:lambda:us-west-1:017000801446:layer:AWSLambdaPowertoolsPython:37 ](#){: .copyMe}:clipboard: |
56+ | `us-west-2` | [arn:aws:lambda:us-west-2:017000801446:layer:AWSLambdaPowertoolsPython:37 ](#){: .copyMe}:clipboard: |
5757
5858??? question "Can't find our Lambda Layer for your preferred AWS region?"
5959 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.
@@ -67,7 +67,7 @@ You can include Lambda Powertools Lambda Layer using [AWS Lambda Console](https:
6767 Type: AWS::Serverless::Function
6868 Properties:
6969 Layers:
70- - !Sub arn:aws:lambda:${AWS::Region}:017000801446:layer:AWSLambdaPowertoolsPython:36
70+ - !Sub arn:aws:lambda:${AWS::Region}:017000801446:layer:AWSLambdaPowertoolsPython:37
7171 ```
7272
7373=== "Serverless framework"
@@ -77,7 +77,7 @@ You can include Lambda Powertools Lambda Layer using [AWS Lambda Console](https:
7777 hello:
7878 handler: lambda_function.lambda_handler
7979 layers:
80- - arn:aws:lambda:${aws:region}:017000801446:layer:AWSLambdaPowertoolsPython:36
80+ - arn:aws:lambda:${aws:region}:017000801446:layer:AWSLambdaPowertoolsPython:37
8181 ```
8282
8383=== "CDK"
@@ -93,7 +93,7 @@ You can include Lambda Powertools Lambda Layer using [AWS Lambda Console](https:
9393 powertools_layer = aws_lambda.LayerVersion.from_layer_version_arn(
9494 self,
9595 id="lambda-powertools",
96- layer_version_arn=f"arn:aws:lambda:{env.region}:017000801446:layer:AWSLambdaPowertoolsPython:36 "
96+ layer_version_arn=f"arn:aws:lambda:{env.region}:017000801446:layer:AWSLambdaPowertoolsPython:37 "
9797 )
9898 aws_lambda.Function(self,
9999 'sample-app-lambda',
@@ -142,7 +142,7 @@ You can include Lambda Powertools Lambda Layer using [AWS Lambda Console](https:
142142 role = aws_iam_role.iam_for_lambda.arn
143143 handler = "index.test"
144144 runtime = "python3.9"
145- layers = ["arn:aws:lambda:{region}:017000801446:layer:AWSLambdaPowertoolsPython:36 "]
145+ layers = ["arn:aws:lambda:{region}:017000801446:layer:AWSLambdaPowertoolsPython:37 "]
146146
147147 source_code_hash = filebase64sha256("lambda_function_payload.zip")
148148 }
@@ -161,7 +161,7 @@ You can include Lambda Powertools Lambda Layer using [AWS Lambda Console](https:
161161 ? Do you want to configure advanced settings? Yes
162162 ...
163163 ? Do you want to enable Lambda layers for this function? Yes
164- ? Enter up to 5 existing Lambda layer ARNs (comma-separated): arn:aws:lambda:eu-central-1:017000801446:layer:AWSLambdaPowertoolsPython:36
164+ ? Enter up to 5 existing Lambda layer ARNs (comma-separated): arn:aws:lambda:eu-central-1:017000801446:layer:AWSLambdaPowertoolsPython:37
165165 ❯ amplify push -y
166166
167167
@@ -172,15 +172,15 @@ You can include Lambda Powertools Lambda Layer using [AWS Lambda Console](https:
172172 - Name: <NAME-OF-FUNCTION>
173173 ? Which setting do you want to update? Lambda layers configuration
174174 ? Do you want to enable Lambda layers for this function? Yes
175- ? Enter up to 5 existing Lambda layer ARNs (comma-separated): arn:aws:lambda:eu-central-1:017000801446:layer:AWSLambdaPowertoolsPython:36
175+ ? Enter up to 5 existing Lambda layer ARNs (comma-separated): arn:aws:lambda:eu-central-1:017000801446:layer:AWSLambdaPowertoolsPython:37
176176 ? Do you want to edit the local lambda function now? No
177177 ```
178178
179179=== "Get the Layer .zip contents"
180180 Change {region} to your AWS region, e.g. ` eu-west-1 `
181181
182182 ```bash title="AWS CLI"
183- aws lambda get-layer-version-by-arn --arn arn:aws:lambda:{region}:017000801446:layer:AWSLambdaPowertoolsPython:36 --region {region}
183+ aws lambda get-layer-version-by-arn --arn arn:aws:lambda:{region}:017000801446:layer:AWSLambdaPowertoolsPython:37 --region {region}
184184 ```
185185
186186 The pre-signed URL to download this Lambda Layer will be within `Location` key.
@@ -218,7 +218,7 @@ If using SAM, you can include this SAR App as part of your shared Layers stack,
218218 Properties:
219219 Location:
220220 ApplicationId: arn:aws:serverlessrepo:eu-west-1:057560766410:applications/aws-lambda-powertools-python-layer
221- SemanticVersion: 1.26.3 # change to latest semantic version available in SAR
221+ SemanticVersion: 1.30.0 # change to latest semantic version available in SAR
222222
223223 MyLambdaFunction:
224224 Type: AWS::Serverless::Function
@@ -246,7 +246,7 @@ If using SAM, you can include this SAR App as part of your shared Layers stack,
246246 Location:
247247 ApplicationId: arn:aws:serverlessrepo:eu-west-1:057560766410:applications/aws-lambda-powertools-python-layer
248248 # Find latest from github.com/awslabs/aws-lambda-powertools-python/releases
249- SemanticVersion: 1.26.3
249+ SemanticVersion: 1.30.0
250250 ```
251251
252252=== "CDK"
@@ -256,7 +256,7 @@ If using SAM, you can include this SAR App as part of your shared Layers stack,
256256
257257 POWERTOOLS_BASE_NAME = 'AWSLambdaPowertools'
258258 # Find latest from github.com/awslabs/aws-lambda-powertools-python/releases
259- POWERTOOLS_VER = '1.26.3 '
259+ POWERTOOLS_VER = '1.30.0 '
260260 POWERTOOLS_ARN = 'arn:aws:serverlessrepo:eu-west-1:057560766410:applications/aws-lambda-powertools-python-layer'
261261
262262 class SampleApp(core.Construct):
@@ -320,7 +320,7 @@ If using SAM, you can include this SAR App as part of your shared Layers stack,
320320
321321 variable "aws_powertools_version" {
322322 type = string
323- default = "1.26.3 "
323+ default = "1.30.0 "
324324 description = "The AWS Powertools release version"
325325 }
326326
@@ -462,11 +462,11 @@ Whether you're prototyping locally or against a non-production environment, you
462462
463463When ` POWERTOOLS_DEV ` is set to a truthy value (` 1 ` , ` true ` ), it'll have the following effects:
464464
465- | Utility | Effect |
466- | ----------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
467- | ** Logger** | Increase JSON indentation to 4. This will ease local debugging when running functions locally under emulators or direct calls while not affecting unit tests |
465+ | Utility | Effect |
466+ | ----------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
467+ | ** Logger** | Increase JSON indentation to 4. This will ease local debugging when running functions locally under emulators or direct calls while not affecting unit tests |
468468| ** Event Handler** | Enable full traceback errors in the response, indent request/responses, and CORS in dev mode (` * ` ). This will deprecate [ ` POWERTOOLS_EVENT_HANDLER_DEBUG ` ] ( https://awslabs.github.io/aws-lambda-powertools-python/latest/core/event_handler/api_gateway/#debug-mode ) in the future. |
469- | ** Tracer** | Future-proof safety to disables tracing operations in non-Lambda environments. This already happens automatically in the Tracer utility. |
469+ | ** Tracer** | Future-proof safety to disables tracing operations in non-Lambda environments. This already happens automatically in the Tracer utility. |
470470
471471## Debug mode
472472
0 commit comments