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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f38e67c645181875b15058ab4d88f03ff51d03c220426599fdb6a952dd6a115 |
|
MD5 | 31e6d60f7a7a983826d47ce3d886bcd7 |
|
BLAKE2b-256 | 7072ec211ce7781fe4c96c509218526df0089b505277ef8dd22118eba29704f5 |
Close
Hashes for aws_cdk.asset_kubectl_v20-0.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3741280e541debf52f26171a362c314ab009ba3ce24ea3605cc7f9bc5b1511e4 |
|
MD5 | 3b1101843803058c0c25a8e1cfe5dcde |
|
BLAKE2b-256 | 42d1539ad4619ab1e81eabba483987d354cdb63c3cb94592ba713f664c6c4821 |