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.19.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ef2b70b04011c4a1c0f2562e0272d251b54072241a7aca095f3fed82a9d1a08 |
|
MD5 | cff1e8a9879a477e454f166070c81912 |
|
BLAKE2b-256 | e45e2ae6207f22d4d855615f2db7887831160c795c14c804afea92afd961ca0b |
Close
Hashes for aws_cdk.asset_kubectl_v20-0.0.19-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c2cfcf32dfc61c63941b0d22ab8958ae2b38eb94ba52e42efab0f9c0e999ecc3 |
|
MD5 | d79be6eeedc38e7a8951cf36b2cd4770 |
|
BLAKE2b-256 | 2d187a21af7533ab76f005719b28c1d2499ec890d431e74569a1276ef677f74a |