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
File details
Details for the file aws-cdk.asset-kubectl-v22-0.0.3.tar.gz
.
File metadata
- Download URL: aws-cdk.asset-kubectl-v22-0.0.3.tar.gz
- Upload date:
- Size: 27.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 975f205eff8681f14995b055bfd87a0da58871114129923f3f19e79e9b4d2bf2 |
|
MD5 | fa84f0d7a5cdc7ca6d1ef119728f19d4 |
|
BLAKE2b-256 | 8cf263693df821b740c0fa521e75c68c2b45d57f8f8e7f16ac4f38511558b896 |
File details
Details for the file aws_cdk.asset_kubectl_v22-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: aws_cdk.asset_kubectl_v22-0.0.3-py3-none-any.whl
- Upload date:
- Size: 27.4 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 855fb4d5dcc6b275c6617e07908952a38ecc63b83e494b22e22e318e2d224f55 |
|
MD5 | 8192efb36338a5bb6faf7dc4a60a4389 |
|
BLAKE2b-256 | 0d35edcefe964582dd7b239e15af116e1d8fa4634fd4159401a84fc371596382 |