You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge branch 'develop' into feat(event-source)-1656-s3-event-eventbridge-dataclass
* develop:
chore(deps-dev): bump mkdocs-material from 9.1.1 to 9.1.2 (aws-powertools#1994)
chore(deps-dev): bump mypy-boto3-dynamodb from 1.26.84 to 1.26.87 (aws-powertools#1993)
chore(deps): bump pydantic from 1.10.5 to 1.10.6 (aws-powertools#1991)
chore(deps-dev): bump aws-cdk-lib from 2.67.0 to 2.68.0 (aws-powertools#1992)
chore(deps-dev): bump cfn-lint from 0.74.0 to 0.74.1 (aws-powertools#1988)
chore(deps): bump aws-actions/configure-aws-credentials from 1 to 2 (aws-powertools#1987)
update changelog with latest changes
chore(deps-dev): bump pytest from 7.2.1 to 7.2.2 (aws-powertools#1980)
fix(ci): bump CDK version
chore(deps): bump zgosalvez/github-actions-ensure-sha-pinned-actions from 2.1.1 to 2.1.2 (aws-powertools#1979)
chore(deps-dev): bump types-python-dateutil from 2.8.19.9 to 2.8.19.10 (aws-powertools#1973)
chore(deps-dev): bump hvac from 1.0.2 to 1.1.0 (aws-powertools#1983)
chore(deps-dev): bump mkdocs-material from 9.1.0 to 9.1.1 (aws-powertools#1984)
update changelog with latest changes
docs(homepage): revamp install UX & share how we build Lambda Layer (aws-powertools#1978)
chore(deps-dev): bump mypy-boto3-dynamodb from 1.26.24 to 1.26.84 (aws-powertools#1981)
chore(deps-dev): bump mkdocs-material from 9.0.15 to 9.1.0 (aws-powertools#1976)
chore(deps-dev): bump cfn-lint from 0.67.0 to 0.74.0 (aws-powertools#1974)
Copy file name to clipboardExpand all lines: CHANGELOG.md
+26-1
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,29 @@
6
6
7
7
## Bug Fixes
8
8
9
+
***ci:** bump CDK version
10
+
11
+
## Documentation
12
+
13
+
***homepage:** revamp install UX & share how we build Lambda Layer ([#1978](https://github.com/awslabs/aws-lambda-powertools-python/issues/1978))
14
+
15
+
## Maintenance
16
+
17
+
***deps:** bump zgosalvez/github-actions-ensure-sha-pinned-actions from 2.1.1 to 2.1.2 ([#1979](https://github.com/awslabs/aws-lambda-powertools-python/issues/1979))
18
+
***deps-dev:** bump pytest from 7.2.1 to 7.2.2 ([#1980](https://github.com/awslabs/aws-lambda-powertools-python/issues/1980))
19
+
***deps-dev:** bump types-python-dateutil from 2.8.19.9 to 2.8.19.10 ([#1973](https://github.com/awslabs/aws-lambda-powertools-python/issues/1973))
20
+
***deps-dev:** bump hvac from 1.0.2 to 1.1.0 ([#1983](https://github.com/awslabs/aws-lambda-powertools-python/issues/1983))
21
+
***deps-dev:** bump mkdocs-material from 9.1.0 to 9.1.1 ([#1984](https://github.com/awslabs/aws-lambda-powertools-python/issues/1984))
22
+
***deps-dev:** bump mypy-boto3-dynamodb from 1.26.24 to 1.26.84 ([#1981](https://github.com/awslabs/aws-lambda-powertools-python/issues/1981))
23
+
***deps-dev:** bump mkdocs-material from 9.0.15 to 9.1.0 ([#1976](https://github.com/awslabs/aws-lambda-powertools-python/issues/1976))
24
+
***deps-dev:** bump cfn-lint from 0.67.0 to 0.74.0 ([#1974](https://github.com/awslabs/aws-lambda-powertools-python/issues/1974))
25
+
***deps-dev:** bump aws-cdk-lib from 2.66.1 to 2.67.0 ([#1977](https://github.com/awslabs/aws-lambda-powertools-python/issues/1977))
26
+
27
+
28
+
<aname="v2.9.1"></a>
29
+
## [v2.9.1] - 2023-03-01
30
+
## Bug Fixes
31
+
9
32
***idempotency:** revert dict mutation that impacted static_pk_value feature ([#1970](https://github.com/awslabs/aws-lambda-powertools-python/issues/1970))
10
33
11
34
## Documentation
@@ -16,6 +39,7 @@
16
39
## Maintenance
17
40
18
41
* update project description
42
+
* update v2 layer ARN on documentation
19
43
***ci:** disable pypi test due to maintenance mode
Copy file name to clipboardExpand all lines: docs/index.md
+35-38
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ description: AWS Lambda Powertools for Python
5
5
6
6
<!-- markdownlint-disable MD043 MD013 -->
7
7
8
-
A suite of utilities for AWS Lambda functions to ease adopting best practices such as tracing, structured logging, custom metrics, idempotency, batching, [**and more**](#features).
8
+
Powertools is a developer toolkit to implement Serverless best practices and increase developer velocity.
9
9
10
10
???+ tip
11
11
Powertools is also available for [Java](https://awslabs.github.io/aws-lambda-powertools-java/){target="_blank"}, [TypeScript](https://awslabs.github.io/aws-lambda-powertools-typescript/latest/){target="_blank"}, and [.NET](https://awslabs.github.io/aws-lambda-powertools-dotnet/){target="_blank"}
@@ -24,41 +24,52 @@ A suite of utilities for AWS Lambda functions to ease adopting best practices su
24
24
25
25
## Install
26
26
27
-
Powertools is available in the following formats:
27
+
You can install Powertools using one of the following options:
???+ info "Some utilities require additional dependencies"
34
-
You can stop reading if you're using Lambda Layer.
35
-
36
-
[Tracer](./core/tracer.md){target="_blank"}, [Validation](./utilities/validation.md){target="_blank"} and [Parser](./utilities/parser.md){target="_blank"} require additional dependencies. If you prefer to install all of them, use `pip install "aws-lambda-powertools[all]"`.
33
+
??? question "Using Pip? You might need to install additional dependencies."
34
+
[**Tracer**](./core/tracer.md){target="_blank"}, [**Validation**](./utilities/validation.md){target="_blank"} and [**Parser**](./utilities/parser.md){target="_blank"} require additional dependencies. If you prefer to install all of them, use [**`pip install "aws-lambda-powertools[all]"`**](#){: .copyMe}:clipboard:.
* **Tracer** and **Parser**: **[`pip install "aws-lambda-powertools[tracer,parser]"`](#){: .copyMe}:clipboard:**
44
42
45
43
### Local development
46
44
47
-
Powertools relies on the AWS SDK bundled in the Lambda runtime. This helps us achieve an optimal package size and initialization.
45
+
!!! info "Using Powertools via Lambda Layer? Simply add [**`"aws-lambda-powertools[all]"`**](#){: .copyMe}:clipboard: as a development dependency."
46
+
47
+
Powertools relies on the [AWS SDK bundled in the Lambda runtime](https://docs.aws.amazon.com/lambda/latest/dg/lambda-python.html){target="_blank"}. This helps us achieve an optimal package size and initialization. However, when developing locally, you need to install AWS SDK as a development dependency (not as a production dependency):
Powertools relies on the AWS SDK being available to use in the target runtime (AWS Lambda).
48
55
49
-
This means you need to add AWS SDK as a development dependency (not as a production dependency).
56
+
As a result, it affects your favorite IDE in terms of code auto-completion, or running your tests suite locally with no Lambda emulation such as [AWS SAM CLI](https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/install-sam-cli.html){target="_blank"}.
If you're running your code locally with [AWS SAM CLI](https://github.com/aws/aws-sam-cli){target="_blank"}, and not with your Python/IDE interpreter directly, this is not necessary. SAM CLI already brings the AWS SDK in its emulation image.
60
+
In this context, `[aws-sdk]` is an alias to the `boto3` package. Due to dependency resolution, it'll either install:
61
+
62
+
***(A)** the SDK version available in [Lambda runtime](https://docs.aws.amazon.com/lambda/latest/dg/lambda-python.html){target="_blank"}
63
+
***(B)** a more up-to-date version if another package you use also depends on `boto3`, for example [Powertools Tracer](core/tracer.md){target="_blank"}
57
64
58
65
### Lambda Layer
59
66
67
+
???+ warning "As of now, Container Image deployment (OCI) or inline Lambda functions do not support Lambda Layers."
68
+
60
69
[Lambda Layer](https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html){target="_blank"} is a .zip file archive that can contain additional code, pre-packaged dependencies, data, or configuration files. Layers promote code sharing and separation of responsibilities so that you can iterate faster on writing business logic.
61
70
71
+
For our Layers, we compile and optimize [all dependencies](https://github.com/awslabs/aws-lambda-powertools-python/blob/develop/pyproject.toml#L98){target="_blank"}, and [remove duplicate dependencies already available in the Lambda runtime](https://github.com/awslabs/cdk-aws-lambda-powertools-layer/blob/main/layer/Python/Dockerfile#L36){target="_blank"} to achieve the most optimal size.
72
+
62
73
You can include Powertools Lambda Layer using [AWS Lambda Console](https://docs.aws.amazon.com/lambda/latest/dg/invocation-layers.html#invocation-layers-using){target="_blank"}, or your preferred deployment framework.
63
74
64
75
??? note "Note: Click to expand and copy any regional Lambda Layer ARN"
@@ -271,16 +282,6 @@ You can include Powertools Lambda Layer using [AWS Lambda Console](https://docs.
271
282
? Do you want to edit the local lambda function now? No
272
283
```
273
284
274
-
=== "Get the Layer .zip contents"
275
-
276
-
Change {region} to your AWS region, e.g. `eu-west-1`
0 commit comments