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
Copy file name to clipboardExpand all lines: docs/index.md
+178
Original file line number
Diff line number
Diff line change
@@ -28,6 +28,184 @@ Core utilities such as Tracer, Logger, Metrics, and Event Handler will be availa
28
28
29
29
## Installation
30
30
31
+
You can use Powertools through [AWS Lambda Layer](https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-concepts.html#gettingstarted-concepts-layer) or install it as your dependency via NPM:
???+ hint "Support this project by using Lambda Layers :heart:"
37
+
Lambda Layers allow us to understand who uses this library in a non-intrusive way. This helps us justify and gain future investments for other Lambda Powertools languages.
38
+
39
+
When using Layers, you can add Lambda Powertools as a dev dependency to not impact the development process.
40
+
41
+
42
+
### Lambda Layer
43
+
44
+
[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.
45
+
46
+
You can include Lambda 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.
47
+
48
+
??? note "Note: Expand to copy any regional Lambda Layer ARN"
??? question "Can't find our Lambda Layer for your preferred AWS region?"
71
+
You can use our [CDK Layer Construct](https://github.com/aws-samples/cdk-lambda-powertools-python-layer){target="_blank"}, or NPM like you normally would for any other library.
72
+
73
+
Please do file a feature request with the region you'd want us to prioritize making our Lambda Layer available.
The pre-signed URL to download this Lambda Layer will be within `Location` key.
202
+
203
+
???+ warning "Warning: Limitations"
204
+
205
+
Container Image deployment (OCI) or inline Lambda functions do not support Lambda Layers.
206
+
207
+
### NPM Modules
208
+
31
209
The AWS Lambda Powertools for TypeScript utilities (which from here will be referred as Powertools) follow a modular approach, similar to the official [AWS SDK v3 for JavaScript](https://github.com/aws/aws-sdk-js-v3).
32
210
Each TypeScript utility is installed as standalone NPM package.
Copy file name to clipboardExpand all lines: examples/cdk/README.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ The example functions, located in the `src` folder, are invoked automatically, t
9
9
## Deploying the stack
10
10
11
11
* Navigate to this location of the repo in your terminal (`examples/cdk`)
12
-
*`npm install`
12
+
*`npm ci`
13
13
*`npm run cdk deploy --all --profile <YOUR_AWS_PROFILE>`
14
14
15
15
Note: Prior to deploying you may need to run `cdk bootstrap aws://<YOU_AWS_ACCOUNT_ID>/<AWS_REGION> --profile <YOUR_AWS_PROFILE>` if you have not already bootstrapped your account for CDK.
0 commit comments