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.13.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 483667b7497b12424c0732aa2c3bb18c9c551571caa54c747d34016e936bfc68 |
|
MD5 | 5769796754a2a1b2e751a73522f0c425 |
|
BLAKE2b-256 | 8d92082425ea395e374fc7957a02236f7a8b87863b7bec4ba5047319accb4ca3 |
Close
Hashes for aws_cdk.asset_kubectl_v20-0.0.13-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3bb3e2f1f33f62effaa2d8fc2eea2e2c6858981e1cacc92a38208ca610f001cd |
|
MD5 | a754afbca8b4e0a2db4f67cad4b361fd |
|
BLAKE2b-256 | 0da9fafa7b37a151b21261e5a54c5b35e9c6a755c8809ed91062b94bf068314f |