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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 82e22784d30e084f6c56b4bcd2e076f48896c4d87a391c7e726cdb6e61f9dcf9 |
|
MD5 | fc5baece152b87ffb04036197096ba98 |
|
BLAKE2b-256 | ba51cff3c6d4e44f0315696870c713b932acd0e20e7bbc99cf0cd2e181b8ed4a |
Close
Hashes for aws_cdk.asset_kubectl_v20-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f566cd888ee7dd988d6484889cecde53f9ca0b12cb50f064bba72cf98f735e49 |
|
MD5 | 029f05129bc995ab81384ad81c50b37f |
|
BLAKE2b-256 | a770d98e911ccca7377e6b5ad7c28d3bbc3cd3417acf6cef474e910bf7daea5f |