Skip to content

Commit cd49db3

Browse files
committed
docs(homepage): include new section on local dev deps
1 parent bd38843 commit cd49db3

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

docs/index.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,19 @@ Powertools is available in the following formats:
2525

2626
When using Layers, you can add Lambda Powertools as a dev dependency (or as part of your virtual env) to not impact the development process.
2727

28+
### Local development
29+
30+
Powertools relies on the AWS SDK bundled in the Lambda runtime. This helps us achieve an optimal package size and initialization.
31+
32+
This means you need to add AWS SDK as a development dependency (not as a production dependency).
33+
34+
* **Pip**: `pip install aws-lambda-powertools[aws-sdk]`
35+
* **Poetry**: `poetry add aws-lambda-powertools[aws-sdk] --dev`
36+
* **Pipenv**: `pipenv install --dev "aws-lambda-powertools[aws-sdk]"`
37+
38+
???+ note "Local emulation"
39+
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.
40+
2841
### Lambda Layer
2942

3043
[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.

0 commit comments

Comments
 (0)