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.9.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c773a2bde84cc4c19b2b0fa4df20b91a534df34cffe32c6eb0466e0e60e766b0 |
|
MD5 | ace5d5e4405c6323232ad6f8e62d6d0f |
|
BLAKE2b-256 | 5b9ee0c219a4d040b449459c87afa9083992eea8b6dd6f97fef676470fe4467d |
Close
Hashes for aws_cdk.asset_kubectl_v20-0.0.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d95466a8a5700aa61c6cd6507fcceb1b24d8d80fc0bf1694da4091284aeceba |
|
MD5 | 71cf7c5827bd937ace22ef70ab54a2e2 |
|
BLAKE2b-256 | e23b2f8d8320f591abf6729c2567c354acd5170fe34a607f994abff79a017db8 |