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
sam init --location https://github.com/aws-samples/cookiecutter-aws-sam-python
25
26
```
26
27
28
+
### Lambda Layer
29
+
30
+
Powertools is also available as a Lambda Layer. It is distributed via the [AWS Serverless Application Repository (SAR)](https://docs.aws.amazon.com/serverlessrepo/latest/devguide/what-is-serverlessrepo.html).
If using SAM, you can include this SAR App as part of your shared Layers stack, and lock to a specific semantic version. Once deployed, it'll be available across the account this is deployed to.
SemanticVersion: 1.3.1 # change to latest semantic version available in SAR
45
+
```
46
+
27
47
## Features
28
48
29
49
Utility | Description
@@ -58,22 +78,6 @@ from aws_lambda_powertools.logging.logger import set_package_logger
58
78
set_package_logger()
59
79
```
60
80
61
-
## Lambda Layer
62
-
63
-
Powertools is also available as a layer and is distributed via the [Serverless Application Repository](https://docs.aws.amazon.com/serverlessrepo/latest/devguide/what-is-serverlessrepo.html).
this will create a CloudFormation stack with the powertools layer in a specific region where you run this commands.
74
-
Keep in mind that layers are regional resources and you need to create the layer in every region where you need it.
75
-
Alternatively, you can deploy the layer from the AWS Console by navigating to Serverless Application Repository and search for `aws-lambda-powertools-python-layer` and follow the deploy steps from there.
76
-
77
81
## Tenets
78
82
79
83
* **AWS Lambda only** – We optimise for AWS Lambda function environments and supported runtimes only. Utilities might work with web frameworks and non-Lambda environments, though they are not officially supported.
0 commit comments