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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 458814b344672c3006d6b00938c67f137d28e185d132033cd650aeefad6d54c8 |
|
MD5 | bfc21b4eb4cf0b084fd24f538df54058 |
|
BLAKE2b-256 | 3b194ccc154e28fee0b45f66e53ec1ad41b6421090bc9c871c26382b48e5ff19 |
Close
Hashes for aws_cdk.asset_kubectl_v22-0.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | af9145793b77275df968c0ea4e2c60129e06e5111446b65f8a3d15969ac92933 |
|
MD5 | 0702926d3bb8d48b8827cacaa3e58a4d |
|
BLAKE2b-256 | d0e3dad3bef80753de67f93e9c1373333e1b1d9127dfe89f284a076be9d0aff5 |