From b2402e4b7090e604fc88a1aa54fdbb7b1129f263 Mon Sep 17 00:00:00 2001 From: Simon Thulbourn Date: Mon, 21 Oct 2024 15:05:21 +0200 Subject: [PATCH 1/3] docs: Add GovCloud layer info --- docs/index.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/docs/index.md b/docs/index.md index 7c0c369c24c..5991e9efaa7 100644 --- a/docs/index.md +++ b/docs/index.md @@ -67,11 +67,27 @@ You can install Powertools for AWS Lambda (Python) using your favorite dependenc For the latter, make sure to replace `{region}` with your AWS region, e.g., `eu-west-1`, and the `{python_version}` without the period (.), e.g., `python312` for `Python 3.12`. + ==== "AWS" + | Architecture | Layer ARN | | ------------ | --------------------------------------------------------------------------------------------------------- | | x86_64 | __arn:aws:lambda:{region}:017000801446:layer:AWSLambdaPowertoolsPythonV3-{python_version}-x86_64:2__{: .copyMe}:clipboard: | | ARM | __arn:aws:lambda:{region}:017000801446:layer:AWSLambdaPowertoolsPythonV3-{python_version}-arm64:2__{: .copyMe}:clipboard: | + ==== "AWS GovCloud (us-gov-east-1)" + + | Architecture | Layer ARN | + | ------------ | --------------------------------------------------------------------------------------------------------- | + | x86_64 | __arn:aws-us-gov:lambda:us-gov-east-1:165087284144:layer:AWSLambdaPowertoolsPythonV3-{python_version}-x86_64:2__{: .copyMe}:clipboard: | + | ARM | __arn:aws-us-gov:lambda:us-gov-east-1:165087284144:layer:AWSLambdaPowertoolsPythonV3-{python_version}-arm64:2__{: .copyMe}:clipboard: | + + ==== "AWS GovCloud (us-gov-west-1)" + + | Architecture | Layer ARN | + | ------------ | --------------------------------------------------------------------------------------------------------- | + | x86_64 | __arn:aws-us-gov:lambda:us-gov-west-1:165093116878:layer:AWSLambdaPowertoolsPythonV3-{python_version}-x86_64:2__{: .copyMe}:clipboard: | + | ARM | __arn:aws-us-gov:lambda:us-gov-west-1:165093116878:layer:AWSLambdaPowertoolsPythonV3-{python_version}-arm64:2__{: .copyMe}:clipboard: | + === "AWS Console" You can add our layer using the [AWS Lambda Console _(direct link)_](https://console.aws.amazon.com/lambda/home#/add/layer){target="_blank"}: From d34d0799591f5f73db586b0dea8a36f01643eb55 Mon Sep 17 00:00:00 2001 From: Simon Thulbourn Date: Mon, 21 Oct 2024 13:30:28 +0000 Subject: [PATCH 2/3] formatting change --- docs/index.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/docs/index.md b/docs/index.md index 5991e9efaa7..c0da165da64 100644 --- a/docs/index.md +++ b/docs/index.md @@ -67,21 +67,25 @@ You can install Powertools for AWS Lambda (Python) using your favorite dependenc For the latter, make sure to replace `{region}` with your AWS region, e.g., `eu-west-1`, and the `{python_version}` without the period (.), e.g., `python312` for `Python 3.12`. - ==== "AWS" - | Architecture | Layer ARN | | ------------ | --------------------------------------------------------------------------------------------------------- | | x86_64 | __arn:aws:lambda:{region}:017000801446:layer:AWSLambdaPowertoolsPythonV3-{python_version}-x86_64:2__{: .copyMe}:clipboard: | | ARM | __arn:aws:lambda:{region}:017000801446:layer:AWSLambdaPowertoolsPythonV3-{python_version}-arm64:2__{: .copyMe}:clipboard: | - ==== "AWS GovCloud (us-gov-east-1)" +=== "Lambda Layer (GovCloud)" + + [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. + + For the latter, make sure to replace `{python_version}` without the period (.), e.g., `python312` for `Python 3.12`. + + ##### AWS GovCloud (us-gov-east-1) | Architecture | Layer ARN | | ------------ | --------------------------------------------------------------------------------------------------------- | | x86_64 | __arn:aws-us-gov:lambda:us-gov-east-1:165087284144:layer:AWSLambdaPowertoolsPythonV3-{python_version}-x86_64:2__{: .copyMe}:clipboard: | | ARM | __arn:aws-us-gov:lambda:us-gov-east-1:165087284144:layer:AWSLambdaPowertoolsPythonV3-{python_version}-arm64:2__{: .copyMe}:clipboard: | - ==== "AWS GovCloud (us-gov-west-1)" + ##### AWS GovCloud (us-gov-west-1) | Architecture | Layer ARN | | ------------ | --------------------------------------------------------------------------------------------------------- | From 00d8b08d5cb926836e949ce71fdc1e32824a3ec4 Mon Sep 17 00:00:00 2001 From: Simon Thulbourn Date: Mon, 21 Oct 2024 13:32:42 +0000 Subject: [PATCH 3/3] change formatting for headers --- docs/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/index.md b/docs/index.md index c0da165da64..cee0d4f9168 100644 --- a/docs/index.md +++ b/docs/index.md @@ -78,14 +78,14 @@ You can install Powertools for AWS Lambda (Python) using your favorite dependenc For the latter, make sure to replace `{python_version}` without the period (.), e.g., `python312` for `Python 3.12`. - ##### AWS GovCloud (us-gov-east-1) + **AWS GovCloud (us-gov-east-1)** | Architecture | Layer ARN | | ------------ | --------------------------------------------------------------------------------------------------------- | | x86_64 | __arn:aws-us-gov:lambda:us-gov-east-1:165087284144:layer:AWSLambdaPowertoolsPythonV3-{python_version}-x86_64:2__{: .copyMe}:clipboard: | | ARM | __arn:aws-us-gov:lambda:us-gov-east-1:165087284144:layer:AWSLambdaPowertoolsPythonV3-{python_version}-arm64:2__{: .copyMe}:clipboard: | - ##### AWS GovCloud (us-gov-west-1) + **AWS GovCloud (us-gov-west-1)** | Architecture | Layer ARN | | ------------ | --------------------------------------------------------------------------------------------------------- |