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.11.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a2a873b392304876d5ee29dd559610a3ccc9a1a9e7aef5fbe326f2fab8c1914c |
|
MD5 | 32b437cf486d240a2e65f56563fd1031 |
|
BLAKE2b-256 | 3fa8da32f4fc54facc714c577d9ddc506e65c4af897421c7d0ec4ec2b94dc5b1 |
Close
Hashes for aws_cdk.asset_kubectl_v20-0.0.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b56e975ff085175442ba98e5bee450edbe2833101b714589c90a89acda07d021 |
|
MD5 | 5884e94457b807ce62be4861b6f58d56 |
|
BLAKE2b-256 | 8792df466199d99a2b45fe380a1ce126599709ef0f700082db8ebda0e780f3aa |