An Asset construct that contains kubectl, for use in Lambda Layers
Project description
Asset with KubeCtl v1.22
---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.9.4
- Kubectl Version: 1.22.0
Usage:
// KubectlAsset bundles the 'kubectl' and 'helm' command lines
import { KubectlAsset } from '@aws-cdk/asset-kubectl-v22';
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
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-v22-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a310dfb7579493fe90650456f7d67ec4f9113822827fba14f2ab4e37e3506521 |
|
MD5 | afc3daa907c4b3a4d6a898ca56e0808a |
|
BLAKE2b-256 | 2f0f05ed39fbdb52bbb4c1ee91e9193e9a3613882d4c49afa976d86d59754607 |
Close
Hashes for aws_cdk.asset_kubectl_v22-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d1a345692cfc06d1088209ebfd92b2846bb73ca87408f0852a47f53354a7c355 |
|
MD5 | 786bb94799e899a9d650b70e399c818c |
|
BLAKE2b-256 | 93fdeb068584efe9a4ca42f9876f5661bf8c6974ad5c1bf2ca7bf8f95eec63a4 |