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.16.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a134541ed260a03e59d3f8b6044f172d1d0dfb7d63d474a16b31847adcf26d3b |
|
MD5 | 71e4126709cb8ed0a9540960e0741367 |
|
BLAKE2b-256 | a60784082a0ec2e9e4af54eb69e48d8d621661513cae551027294335d1fad11e |
Close
Hashes for aws_cdk.asset_kubectl_v20-0.0.16-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 66fc0bd546502a9c2149f991300156921272b9cf6c7495309582f820151f2bf7 |
|
MD5 | b9407815840d9756ab74cf152b8ef76e |
|
BLAKE2b-256 | 874c13f849829d30c4f09bf90d4f17b3876d1ecb531b5dbe5e33f8438f104d2d |