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.18.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 50baf81d983c67c53d26d00f52aabda85f071e13920c2f855969cd613dd0ffe8 |
|
MD5 | d63d69528f7f93b0b260be6430437f65 |
|
BLAKE2b-256 | d5b274673c24f412a38e54cc80820301a19eb8e60d982fe723e1822500ffdc51 |
Close
Hashes for aws_cdk.asset_kubectl_v20-0.0.18-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 49cd9a9400fb73b96433c84304c363d9135546614599d8de183f12c05e14a237 |
|
MD5 | f7368562d81bd9e83c7a69d353e3c678 |
|
BLAKE2b-256 | 09f2cde1fd4a77b40eab48b2fb3ca24564012274562fbb7310f30e2ea4981990 |