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.20.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | af8673f350d92d3c62d010fd09bb97b1af6f91015574761c73eaece76fd190ac |
|
MD5 | d7e5a03c2a345d3f885cfe04dbdb6cbd |
|
BLAKE2b-256 | 41dcc082db33d31b4259d85077fcb5b564f29e8d987d2d229d03c6ddf14fed32 |
Close
Hashes for aws_cdk.asset_kubectl_v20-0.0.20-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c29ddaf6038b122ec54b242f792da537c068ac8e58bbce70dfe87197cf4e1c0 |
|
MD5 | e599fb90812877c6ca079abb68903e1b |
|
BLAKE2b-256 | d74971a8671a9ba0a99ed8b2fcc8241aeec955d16bc5eb794e88c2792a81e713 |