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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6fe1dc4313902d049ed214b5f5786e77526d6ff47415353be47cca2937d13f47 |
|
MD5 | 996f4f4fc78ab5b1016fbb973406f74b |
|
BLAKE2b-256 | aa2c1a0151ae177f13bc560f076e3a3747e8cb55a5614d81880a40fc08516f76 |
Close
Hashes for aws_cdk.asset_kubectl_v22-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 94e4af86a6fe8df6cc636b2acf2763305b4e2cd63583ed31ad7ddaf65ab9fc58 |
|
MD5 | 32e96a85dc4472e2949c5bce951faafe |
|
BLAKE2b-256 | 677d4df0eff78459590f040249399b2a52ce8ccb4ba5da9fea93e21d5e1c0f39 |