An Asset construct that contains kubectl, for use in Lambda Layers
Project description
Asset with KubeCtl v1.20
---This library is currently under development. Do not use!
This module exports a single class called KubectlAsset
which is an s3_assets.Asset
that
bundles the kubectl
and the
helm
command line.
- Helm Version: 3.8.1
- Kubectl Version: 1.20.0
Usage:
// KubectlAsset bundles the 'kubectl' and 'helm' command lines
import { KubectlAsset } from '@aws-cdk/asset-kubectl-v20';
import * as lambda from 'aws-cdk-lib/aws-lambda';
declare const fn: lambda.Function;
const kubectl = new KubectlAsset(this, 'KubectlAsset');
fn.addLayers(new lambda.LayerVersion(this, 'KubectlLayer', {
code: lambda.Code.fromBucket(kubectl.bucket, kubectl.s3ObjectKey),
}));
kubectl
will be installed under /opt/kubectl/kubectl
, and helm
will be installed under /opt/helm/helm
.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for aws-cdk.asset-kubectl-v20-0.0.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6579ac3342647facb388bd2b07a14515f54cad4ed58546567ffe3e265a1222be |
|
MD5 | 180b5ec59d5f831b17a20132c620dbe2 |
|
BLAKE2b-256 | 83f6b131517b87c5f39d5d981b83c868bf2cc47f7cbbdd1be749eee931f831f6 |
Close
Hashes for aws_cdk.asset_kubectl_v20-0.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 45f7f5f3ef20c08a80fa5da9f42108b2cb55e4694fd06b1d0bc5ff6740527651 |
|
MD5 | 2263d14122b05df2a67150ba7a43c4ff |
|
BLAKE2b-256 | ea1fe98cbd42c2aa78bc8bb6a4605ae4e4cb452f2598d9dd414b11eef78c86bd |