Package Exports
- @aws-cdk/lambda-layer-kubectl
- @aws-cdk/lambda-layer-kubectl/lib/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@aws-cdk/lambda-layer-kubectl) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
AWS Lambda Layer with kubectl (and helm)
This module exports a single class called KubectlLayer which is a lambda.Layer that bundles the kubectl and the helm command line.
- Helm Version: 3.5.4
- Kubectl Version: 1.20.0
Usage:
// KubectlLayer bundles the 'kubectl' and 'helm' command lines
import { KubectlLayer } from '@aws-cdk/lambda-layer-kubectl';
declare const fn: lambda.Function;
fn.addLayers(new KubectlLayer(this, 'KubectlLayer'));kubectl will be installed under /opt/kubectl/kubectl, and helm will be installed under /opt/helm/helm.