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.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | dadf8a993e3b19d3eae82aba13bfa0d3227612d50c548fd4d71f3fe86ca8ca87 |
|
MD5 | 2e38fa9c4c471ea0a1c3787368e56b2f |
|
BLAKE2b-256 | fd6868f30b3f9611647f116622de09f1937a27d16ff81a01041101de0b7777ce |
Close
Hashes for aws_cdk.asset_kubectl_v20-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5828777f3765712d747430a5176ec6bf8c1b3a18ccdf42f5aa4e46a0cd0527ba |
|
MD5 | 051450e704b87ac512aad807e50e3164 |
|
BLAKE2b-256 | b8f8267a50235aa3bf8c153071169f82484a3fa5f0890620e4045d1d312835f0 |