Skip to main content

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

Project description

Asset with KubeCtl v1.21

---

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.9.4
  • Kubectl Version: 1.21.0

Usage:

// KubectlAsset bundles the 'kubectl' and 'helm' command lines
import { KubectlAsset } from '@aws-cdk/asset-kubectl-v21';
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-v21-0.0.1.tar.gz (27.3 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_v21-0.0.1-py3-none-any.whl (27.3 MB view details)

Uploaded Python 3

File details

Details for the file aws-cdk.asset-kubectl-v21-0.0.1.tar.gz.

File metadata

File hashes

Hashes for aws-cdk.asset-kubectl-v21-0.0.1.tar.gz
Algorithm Hash digest
SHA256 4fa74567662fb0900934fa2efac4e94c61801466b87c2f94dc89c1dc5e863d8e
MD5 e24b02910b1fadf902803bdb111a9468
BLAKE2b-256 f24e894c0a03d9e5c3d29c566eff9f398054fbcd060f1bdf553f1edd1cbf66b9

See more details on using hashes here.

File details

Details for the file aws_cdk.asset_kubectl_v21-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for aws_cdk.asset_kubectl_v21-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d166daa86afcf4de6aa7d3af66cac8f00788a9965dadf10ca1a61dad683af406
MD5 4d4b913d2f872bcde1dd0e0bf03d008c
BLAKE2b-256 0551cf858dc7391a8186196f20f1091e5dd4e3fcc40c85c794590b75099869dc

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