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.8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d3aac3324c3a2041b4b162e27404072e16042cbab568f12c3e256e4868ff167 |
|
MD5 | 0838903d667e84d64a2810116f09ed4c |
|
BLAKE2b-256 | fcbd55d0afaff9c805345882758cebb56100302f8644873cdd02b2c87427ee60 |
Close
Hashes for aws_cdk.asset_kubectl_v20-0.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6783baaee58707d00caf788f343f943f7821f0464c5700b3f23bc2b3a44a7f21 |
|
MD5 | e6b1197b0d5c13ceb30e0d094ba1d774 |
|
BLAKE2b-256 | 45536e2b5139ff7f0a4118d464f097ff0d3d01fdaaae0f17164882df1ffb7e5a |