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.17.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | dcf9cdda3b7340557034918b5899c1e4de0c2cc277a2f5c1ab803f6545c893f1 |
|
MD5 | 95acd9400f8b695a611eb296c65727a9 |
|
BLAKE2b-256 | 01b7ef2120d388a8acee62ec0f98ac7c3d7dc471eed24a4cbf2c94d3383671b8 |
Close
Hashes for aws_cdk.asset_kubectl_v20-0.0.17-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1766a08794b291f01c63680772ed32b5baec46a60978e5b9a3b79fa9592e700f |
|
MD5 | 022f106f8fee5a610f4adcbbe2bbff83 |
|
BLAKE2b-256 | 8f68b3c4a4b7fee6a359e809bc3d4f4fb0a3dafbe93245c5d614ab69d1dd7d24 |