Skip to main content

An Asset construct that contains kubectl, for use in Lambda Layers

Project description

Asset with KubeCtl v1.20

---

cdk-constructs: Experimental


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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aws-cdk.asset-kubectl-v20-0.0.21.tar.gz (25.4 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aws_cdk.asset_kubectl_v20-0.0.21-py3-none-any.whl (25.4 MB view details)

Uploaded Python 3

File details

Details for the file aws-cdk.asset-kubectl-v20-0.0.21.tar.gz.

File metadata

File hashes

Hashes for aws-cdk.asset-kubectl-v20-0.0.21.tar.gz
Algorithm Hash digest
SHA256 aace933532c6194a51ec2f74fa9042790b1ae2e1da62dbc1d4600c3120b10ad2
MD5 5e80ad4c151b7d7e21ac850eff868b0c
BLAKE2b-256 3324bbf7471d714707f965537dfd28321431664689a9224c6fc9cd2eead91143

See more details on using hashes here.

File details

Details for the file aws_cdk.asset_kubectl_v20-0.0.21-py3-none-any.whl.

File metadata

File hashes

Hashes for aws_cdk.asset_kubectl_v20-0.0.21-py3-none-any.whl
Algorithm Hash digest
SHA256 cf38cff4dd03c695eb19122368810f6c7fc039cf5e07c6953c7052fafb504773
MD5 b1f0990ac73e558d03d075f41ca34d17
BLAKE2b-256 494ed372173fffcc2f5a04bc9525cc53e4872363b7a6e06b4cd55d67e934dedc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page