From be97e4e5006990c7340025618b03f5d5eacda253 Mon Sep 17 00:00:00 2001 From: Kaizen Conroy <36202692+kaizencc@users.noreply.github.com> Date: Thu, 9 Feb 2023 14:18:07 -0500 Subject: [PATCH] docs(lambda-layers): point to alternative versions (#24071) ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license* --- packages/@aws-cdk/lambda-layer-awscli/README.md | 5 +++++ packages/@aws-cdk/lambda-layer-kubectl/README.md | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/packages/@aws-cdk/lambda-layer-awscli/README.md b/packages/@aws-cdk/lambda-layer-awscli/README.md index c902510290dde..8221cbe348aa9 100644 --- a/packages/@aws-cdk/lambda-layer-awscli/README.md +++ b/packages/@aws-cdk/lambda-layer-awscli/README.md @@ -25,3 +25,8 @@ fn.addLayers(new AwsCliLayer(this, 'AwsCliLayer')); ``` The CLI will be installed under `/opt/awscli/aws`. + +## Alternatives + +This module bundles AWS cli v1. To use AWS cli v2, you can use the +external module [awscdk-asset-awscli](https://github.com/cdklabs/awscdk-asset-awscli/tree/awscli-v2/main). diff --git a/packages/@aws-cdk/lambda-layer-kubectl/README.md b/packages/@aws-cdk/lambda-layer-kubectl/README.md index 2a90c534c9f24..59427504f1a22 100644 --- a/packages/@aws-cdk/lambda-layer-kubectl/README.md +++ b/packages/@aws-cdk/lambda-layer-kubectl/README.md @@ -26,3 +26,10 @@ fn.addLayers(new KubectlLayer(this, 'KubectlLayer')); ``` `kubectl` will be installed under `/opt/kubectl/kubectl`, and `helm` will be installed under `/opt/helm/helm`. + +## Alternatives + +This module bundles Kubectl v1.20.0 and the associated helm version +To use alternative Kubectl versions, including the latest available, +you can use the external module +[awscdk-asset-kubectl](https://github.com/cdklabs/awscdk-asset-kubectl).