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
| ARM | __arn:aws:lambda:{region}:017000801446:layer:AWSLambdaPowertoolsPythonV3-{python_version}-arm64:4__{: .copyMe}:clipboard: |
74
74
75
-
=== "Lambda Layer (GovCloud)"
75
+
=== "AWS Console"
76
76
77
-
[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. We compile and optimize [all dependencies](#install), and remove duplicate dependencies [already available in the Lambda runtime](https://github.com/aws-powertools/powertools-lambda-layer-cdk/blob/d24716744f7d1f37617b4998c992c4c067e19e64/layer/Python/Dockerfile#L36){target="_blank"} to achieve the most optimal size.
77
+
You can add our layer using the [AWS Lambda Console _(direct link)_](https://console.aws.amazon.com/lambda/home#/add/layer){target="_blank"}:
78
78
79
-
For the latter, make sure to replace `{python_version}` without the period (.), e.g., `python313` for `Python 3.13`.
79
+
* Under Layers, choose `AWS layers` or `Specify an ARN`
80
+
* Click to copy the [correct ARN](#lambda-layer) value based on your AWS Lambda function architecture and region
| ARM | __arn:aws-us-gov:lambda:us-gov-east-1:165087284144:layer:AWSLambdaPowertoolsPythonV3-{python_version}-arm64:4__{: .copyMe}:clipboard: |
83
+
=== "AWS SSM Parameter Store"
84
+
We offer Parameter Store aliases for releases too, allowing you to specify either specific versions or use the latest version on every deploy. To use these you can add these snippets to your AWS CloudFormation or Terraform projects:
* Under Layers, choose `AWS layers` or `Specify an ARN`
100
-
* Click to copy the [correct ARN](#lambda-layer) value based on your AWS Lambda function architecture and region
103
+
**Terraform**
104
+
105
+
Using the [`aws_ssm_parameter`](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/ssm_parameter) data provider from the AWS Terraform provider allows you to lookup the value of parameters to use later in your project.
106
+
107
+
```hcl
108
+
data "aws_ssm_parameter" "powertools_version" {
109
+
name = "/aws/service/powertools/python/{arch}/{python_version}/{version}"
@@ -191,6 +210,26 @@ You can install Powertools for AWS Lambda (Python) using your favorite dependenc
191
210
192
211
You'll find the pre-signed URL under `Location` key as part of the CLI command output.
193
212
213
+
=== "Lambda Layer (GovCloud)"
214
+
215
+
[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. We compile and optimize [all dependencies](#install), and remove duplicate dependencies [already available in the Lambda runtime](https://github.com/aws-powertools/powertools-lambda-layer-cdk/blob/d24716744f7d1f37617b4998c992c4c067e19e64/layer/Python/Dockerfile#L36){target="_blank"} to achieve the most optimal size.
216
+
217
+
For the latter, make sure to replace `{python_version}` without the period (.), e.g., `python313` for `Python 3.13`.
0 commit comments