skillfed

aws-cdk.asset-kubectl-v20

A Lambda Layer that contains kubectl v1.20

aws-cdk-asset-kubectl-v20 v2.1.4 1.3M downloads/30d#4,090 on PyPI27
Permissive license Apache-2.0 Active released

What it is and what it does

This package is a Lambda Layer that bundles kubectl v1.36.3 and Helm v4.2.3 as pre-compiled command-line tools. When added to a Lambda function, it makes these tools available at /opt/kubectl/kubectl and /opt/helm/helm without requiring compilation or installation during deployment. The package depends on jsii, publication, and typeguard and supports Python 3.8 through 3.11.

It's designed for developers who need to interact with Kubernetes clusters from Lambda functions. By packaging the tools as a layer, you avoid the overhead of building and bundling them yourself, making it practical to run kubectl or Helm commands as part of serverless automation workflows.

Use it for:

  • Deploy or update Kubernetes resources from Lambda functions triggered by AWS events
  • Automate Helm chart deployments as part of infrastructure-as-code pipelines
  • Run kubectl commands against Kubernetes clusters from Lambda without manual tool bundling
  • Build serverless automation workflows that interact with Kubernetes clusters

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Provides a Lambda Layer containing kubectl v1.36.3 and Helm v4.2.3 command-line tools for use in AWS Lambda functions.

Yes, if you need kubectl or Helm available in Lambda functions and the bundled versions (kubectl v1.36.3, Helm v4.2.3) match your cluster requirements. The package is actively maintained, has no known vulnerabilities, and low install friction. Verify version compatibility with your Kubernetes infrastructure before adopting.

Install

aws-cdk-asset-kubectl-v20 on PyPI

pip

pip install aws-cdk-asset-kubectl-v20

uv

uv add aws-cdk-asset-kubectl-v20

poetry

poetry add aws-cdk-asset-kubectl-v20

Installing aws-cdk.asset-kubectl-v20

Before you install

Low install friction with three lightweight runtime dependencies. Actively maintained with last commit on 2026-08-12 and no known vulnerabilities.

License in practice

Apache-2.0 permissive license allows commercial and private use with minimal restrictions.

Quickstart

pip install aws-cdk.asset-kubectl-v20

from aws_cdk.asset_kubectl_v20 import KubectlV36Layer

kubectl_layer = KubectlV36Layer(self, 'KubectlLayer')
my_function.add_layers(kubectl_layer)

Requires Python 3.8 or later; the layer is only usable within AWS Lambda execution environments.

Verify before relying

  • Whether the bundled kubectl v1.36.3 and Helm v4.2.3 versions are compatible with your target Kubernetes clusters
  • Performance and cold-start impact when adding this layer to Lambda functions
  • Whether the /opt/kubectl and /opt/helm paths integrate with your Lambda execution environment

Package facts

License Apache-2.0 (permissive)
Python support supports the current Python release (~=3.8)
Install friction low — pure-Python wheel
Runtime dependencies 3 — jsii, publication, typeguard
Maintenance actively maintained — 553 days since the last release
Last repo commit
First released
Downloads 1,298,499/month — #4,090 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: aws_cdk.asset_kubectl_v20-2.1.4-py3-none-any.whl

Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI ApprovedOperating System :: OS IndependentProgramming Language :: JavaScriptProgramming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Typing :: Typed

Tags

lambda layer kubectl helmaws lambda kubernetes toolskubectl in lambda functionhelm command line layerkubernetes tools aws lambdalambda layer deployment toolsserverless kubernetes automation
aws-lambdakuberneteslambda-layer

More Build Tools packages

packaging

Provides reusable utilities for Python…

permissive · top 100 on PyPI

tqdm

Wraps any iterable to display a real-time…

copyleft · top 100 on PyPI

pip

pip is the standard installer for Python…

permissive · top 100 on PyPI

hatchling

Hatchling is a standards-compliant Python build…

permissive · top 100 on PyPI

grpcio-tools

Generates Python gRPC service stubs and message…

permissive · top 1,000 on PyPI

pre-commit

pre-commit is a framework for installing and…

permissive · top 1,000 on PyPI

aws-cdk.lambda-layer-kubectl-v35

Provides a Lambda Layer packaging kubectl…

permissive · top 15,000 on PyPI

pyhelm3

pyhelm3 is a Python library for…

permissive · top 15,000 on PyPI

aws-cdk.asset-awscli-v1

Bundles AWS CLI v1 as a reusable asset for AWS…

permissive · top 5,000 on PyPI

aws-cdk.asset-node-proxy-agent-v6

Bundles the NPM proxy-agent package (version…

permissive · top 5,000 on PyPI

aws-cdk.asset-node-proxy-agent-v5

Bundles the NPM proxy-agent package as an AWS…

permissive · top 15,000 on PyPI

aws-cdk.aws-lambda-python-alpha

Provides AWS CDK constructs for defining,…

permissive · top 5,000 on PyPI

epik8s-tools

Automates project structure, Helm chart, and…

permissive · top 15,000 on PyPI

aws-cdk.aws-imagebuilder

Provides AWS CDK L1 constructs for defining and…

permissive · top 15,000 on PyPI

aws-cdk.aws-sam

Provides AWS CDK v1 constructs for defining…

permissive · top 15,000 on PyPI

flux-local

flux-local provides CLI tools and a Python…

permissive · top 15,000 on PyPI