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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 611f9c9618ffea47f48ccf9cdd221171936199d73b21d6ad9ac74ab79f5e77d6 |
|
MD5 | d6d2daff3b2a537f0cca1570843319b4 |
|
BLAKE2b-256 | 2ff73217de3e40ae3f8d3b1d0ef34b497840756115e1e822ec60768a4d49a434 |
Close
Hashes for aws_cdk.asset_kubectl_v20-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 588fceddc89729f15af0a5cf28d7d4b525f2f9be6babaf89cff06ee68725fb17 |
|
MD5 | 65d12812d1970b48882c2585c60d48a9 |
|
BLAKE2b-256 | 387d6bc0191fe42e8cfccb82ae2d04c365a15ffaff9b6ce3600a1c8b1ea406bd |