Skip to content

Commit a3c10fa

Browse files
author
Michael Brewer
authored
Merge branch 'awslabs:develop' into fix-1025-v2
2 parents 9b0f3b9 + 4543f96 commit a3c10fa

File tree

4 files changed

+52
-27
lines changed

4 files changed

+52
-27
lines changed

CHANGELOG.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,31 @@ All notable changes to this project will be documented in this file.
44

55
This project follows [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) format for changes and adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## 1.25.7 - 2022-04-08
8+
9+
### Bug Fixes
10+
11+
* **idempotency:** pass by value on idem key to guard inadvertent mutations ([#1090](https://github.com/awslabs/aws-lambda-powertools-python/issues/1090))
12+
* **logger:** clear_state should keep custom key formats ([#1095](https://github.com/awslabs/aws-lambda-powertools-python/issues/1095))
13+
* **middleware_factory:** ret type annotation for handler dec ([#1066](https://github.com/awslabs/aws-lambda-powertools-python/issues/1066))
14+
15+
### Documentation
16+
17+
* **layer:** update to 1.25.6; cosmetic changes
18+
19+
### Maintenance
20+
21+
* **governance:** refresh pull request template sections
22+
* **governance:** update external non-triage effort disclaimer
23+
* **governance:** update static typing to a form
24+
* **governance:** update rfc to a form
25+
* **governance:** update feat request to a form
26+
* **governance:** bug report form typo
27+
* **governance:** update docs report to a form
28+
* **governance:** update bug report to a form
29+
* **governance:** new ask a question
30+
* **governance:** new static typing report
31+
732
## 1.25.6 - 2022-04-01
833

934
* **logger:** clear_state regression on absent standard keys like level, location, timestamp ([#1088](https://github.com/awslabs/aws-lambda-powertools-python/issues/1088))

aws_lambda_powertools/utilities/idempotency/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import logging
2-
from typing import Any, Callable, Dict, Optional, Tuple
32
from copy import deepcopy
3+
from typing import Any, Callable, Dict, Optional, Tuple
44

55
from aws_lambda_powertools.utilities.idempotency.config import IdempotencyConfig
66
from aws_lambda_powertools.utilities.idempotency.exceptions import (

docs/index.md

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ A suite of utilities for AWS Lambda functions to ease adopting best practices su
1414

1515
Powertools is available in the following formats:
1616

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}
1818
* **PyPi**: **`pip install aws-lambda-powertools`**
1919

2020
???+ 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: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}
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:16
66+
- !Sub arn:aws:lambda:${AWS::Region}:017000801446:layer:AWSLambdaPowertoolsPython:17
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:16
76+
- arn:aws:lambda:${aws:region}:017000801446:layer:AWSLambdaPowertoolsPython:17
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:16"
92+
layer_version_arn=f"arn:aws:lambda:{env.region}:017000801446:layer:AWSLambdaPowertoolsPython:17"
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:16"]
141+
layers = ["arn:aws:lambda:{region}:017000801446:layer:AWSLambdaPowertoolsPython:17"]
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:16
160+
? Enter up to 5 existing Lambda layer ARNs (comma-separated): arn:aws:lambda:eu-central-1:017000801446:layer:AWSLambdaPowertoolsPython:17
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:16
171+
? Enter up to 5 existing Lambda layer ARNs (comma-separated): arn:aws:lambda:eu-central-1:017000801446:layer:AWSLambdaPowertoolsPython:17
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:16 --region {region}
179+
aws lambda get-layer-version-by-arn --arn arn:aws:lambda:{region}:017000801446:layer:AWSLambdaPowertoolsPython:17 --region {region}
180180
```
181181

182182
The pre-signed URL to download this Lambda Layer will be within `Location` key.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "aws_lambda_powertools"
3-
version = "1.25.6"
3+
version = "1.25.7"
44
description = "A suite of utilities for AWS Lambda functions to ease adopting best practices such as tracing, structured logging, custom metrics, batching, idempotency, feature flags, and more."
55
authors = ["Amazon Web Services"]
66
include = ["aws_lambda_powertools/py.typed", "THIRD-PARTY-LICENSES"]

0 commit comments

Comments
 (0)