skillfed

aws-cdk.lambda-layer-kubectl-v35

A Lambda Layer that contains kubectl v1.35

aws-cdk-lambda-layer-kubectl-v35 v2.2.2 81.6K downloads/30d#14,219 on PyPI27
Permissive license Apache-2.0 Active released

What it is and what it does

This package is an AWS CDK construct that bundles kubectl v1.35.2 and Helm v4.1.3 into a Lambda Layer, making those command-line tools available to Lambda functions. When added to a Lambda function via CDK, it stages kubectl at `/opt/kubectl/kubectl` and helm at `/opt/helm/helm` within the function's execution environment. It is designed for infrastructure-as-code workflows where you define AWS resources in Python using the AWS CDK framework.

The package is a thin wrapper around pre-built binaries; it does not compile or build kubectl or Helm itself. It is most useful when your Lambda functions need to interact with Kubernetes clusters or manage Helm charts—for example, triggering deployments, querying cluster state, or applying manifests. The layer approach avoids bundling these tools into every function's deployment package, reducing code size and enabling reuse across multiple functions.

Use it for:

  • Add kubectl and helm to Lambda functions that manage or query Kubernetes clusters from AWS infrastructure.
  • Automate Helm chart deployments triggered by Lambda events without packaging tools in each function.
  • Build CDK-based infrastructure that provisions Lambda functions with pre-configured Kubernetes CLI access.
  • Enable Lambda-based CI/CD pipelines to apply Kubernetes manifests or run kubectl commands against EKS clusters.

Worth the install?

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

Provides a Lambda Layer packaging kubectl v1.35.2 and Helm v4.1.3 for use in AWS Lambda functions running Python.

Yes, if you are using AWS CDK to define Lambda functions that need kubectl or Helm access. The package has low install friction, active maintenance, no known vulnerabilities, and a permissive license. Install only if you are already in a CDK-based workflow; it adds no value outside that context.

Install

aws-cdk-lambda-layer-kubectl-v35 on PyPI

pip

pip install aws-cdk-lambda-layer-kubectl-v35

uv

uv add aws-cdk-lambda-layer-kubectl-v35

poetry

poetry add aws-cdk-lambda-layer-kubectl-v35

Installing aws-cdk.lambda-layer-kubectl-v35

Before you install

Low install friction with a pure-Python wheel. Active maintenance as of 2026-08-12 with recent releases; depends on stable AWS CDK ecosystem libraries (aws-cdk-lib, constructs, jsii).

License in practice

Apache-2.0 permissive license allows commercial and private use with minimal restrictions; suitable for most production environments.

Quickstart

from aws_cdk.lambda_layer_kubectl_v35 import KubectlV35Layer
import aws_cdk.aws_lambda as lambda_

kubectl = KubectlV35Layer(self, "KubectlLayer")
fn.add_layers(kubectl)

Requires Python 3.9 or later; intended for use within AWS CDK infrastructure-as-code projects, not standalone scripts.

Verify before relying

  • Whether the layer size and cold-start overhead are acceptable for latency-sensitive Lambda workloads.
  • Compatibility with Lambda runtimes other than Python (e.g., Node.js functions that need kubectl access).

Package facts

License Apache-2.0 (permissive)
Python support supports the current Python release (~=3.9)
Install friction low — pure-Python wheel
Runtime dependencies 5 — aws-cdk-lib, constructs, jsii, publication, typeguard
Maintenance actively maintained — 93 days since the last release
Last repo commit
First released
Downloads 81,560/month — #14,219 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: aws_cdk_lambda_layer_kubectl_v35-2.2.2-py3-none-any.whl

Development Status :: 4 - BetaIntended Audience :: DevelopersLicense :: OSI ApprovedOperating System :: OS IndependentProgramming Language :: JavaScriptProgramming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.9Typing :: Typed

Tags

lambda layer kubectlaws cdk kubernetes toolshelm in lambdakubectl lambda layeraws cdk lambda deploymentkubernetes cli lambdahelm deployment automation
aws-cdkkuberneteslambda-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.asset-kubectl-v20

Provides a Lambda Layer containing kubectl…

permissive · top 5,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

aws-cdk.aws-lambda

Defines AWS Lambda functions and layers as…

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

aws-cdk.aws-elasticloadbalancing

Provides AWS CDK constructs for configuring and…

permissive · top 15,000 on PyPI