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.15.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc3f1ce3b56098ede26c444131acf1aa5a97b09fcf884eab28363a868b365de3 |
|
MD5 | b1982a078fe452decfbb0af6dfea2776 |
|
BLAKE2b-256 | 5e040e6a4ed6eb29624974508f65142c326ac23b3049b05fe9c9e9afbae3a6d7 |
Close
Hashes for aws_cdk.asset_kubectl_v20-0.0.15-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9370ea2dded6db5d4e820f799d357b429a52163cd2ab1fbc948229773af2d48d |
|
MD5 | 83406c0bb05ea2677f4f53ec4e26046a |
|
BLAKE2b-256 | cdda16b52835a47aa7107155582d7dd5e2ed18ad012acd16620fa5900e1922b8 |