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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b4eae87e596c48c9f5f813d5146df5af88b16f434b08f4fde913a58588440a4f |
|
MD5 | f91848a926ee703ceeca301e56dc58e7 |
|
BLAKE2b-256 | 7b0b8699542de0023f9232545483164ddf7e91560b2b00254b64c59d4c728d88 |
Close
Hashes for aws_cdk.asset_kubectl_v20-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 208b9198266a60258059941ecb971c7f57d7449c4ed39b520c3e5b72a119616f |
|
MD5 | 097687a79935774001cddf5755becce6 |
|
BLAKE2b-256 | a4d6766871abc19bf42bc71ccff5248f0e1bf09c07a6936166d29464755acc59 |