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.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf819d5879160332c920b5f04fa18df9709bbe6350e99a60feccd687825ffce0 |
|
MD5 | ad26c20a0615487f00e52e5b4529ed36 |
|
BLAKE2b-256 | 58db15806c4a24a1bed2eba4060d54dbeaa793ac75babc8289b670e500577bc4 |
Close
Hashes for aws_cdk.asset_kubectl_v20-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e8c3af11ebb2de656b851d893d058526233b62c8a9956b1fe6c1d53b84c8041 |
|
MD5 | cb8e9021980da88e5e0073b43e2f39e2 |
|
BLAKE2b-256 | f1d822a59cbf5360f15c09fbd368d33978f1933bac3ed262ee0a9ad5849bdc24 |