$npx skillfedfor your agent

aws-cdk.aws-lambda

The CDK Construct Library for AWS::Lambda

SkipPyPI Build ToolsReleased Jun 2023172.7K downloads / moApache-2.0Pure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — aws_cdk.aws_lambda-1.204.0-py3-none-any.whl
v1.204.0 · released 2023-06-19 · Python ~=3.7 · 23 runtime deps: aws-cdk.aws-applicationautoscaling, aws-cdk.aws-cloudwatch, aws-cdk.aws-codeguruprofiler, aws-cdk.aws-ec2, aws-cdk.aws-ecr-assets, aws-cdk.aws-ecr, aws-cdk.aws-efs, aws-cdk.aws-events

No—this is AWS CDK v1, which reached end-of-support on 2023-06-01 and receives no further updates. Install only if you are maintaining an existing v1 codebase. For new projects, use AWS CDK v2 instead. The package itself has low install friction and a permissive license, but the maintenance status makes it unsuitable for new development.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires AWS CDK v1 core library and constructs package; AWS credentials and local filesystem access for asset bundling.
  • Low install friction with a pure-Python wheel.
  • However, this is AWS CDK v1, which reached end-of-support on 2023-06-01 and is no longer being updated—users should migrate to AWS CDK v2 instead.

License · maintenance · safety

Apache-2.0 (permissive) — Licensed under Apache-2.0 (permissive), allowing commercial use, modification, and distribution with minimal restrictions.

last release 2023-06-19 (1152 days) · last repo commit 2026-08-14 · 12,868 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 172,663 downloads/mo, #10,329 on PyPI

Verify before relying

from aws_cdk import aws_lambda as lambda_
from aws_cdk import core as cdk
import os

fn = lambda_.Function(self, "MyFunction",
    runtime=lambda_.Runtime.PYTHON_3_9,
    handler="index.main",
    code=lambda_.Code.from_asset(os.path.join(os.path.dirname(__file__), "lambda-handler"))
)
  • Whether v1 receives any critical security patches despite end-of-support status.
  • Performance or compatibility implications of using v1 in new projects versus migrating to v2.
Same gist for agents: .md · .json

What it is and what it does

This package provides CDK constructs for defining AWS Lambda functions and layers as Python objects within infrastructure-as-code stacks. It abstracts Lambda configuration—runtime, handler, code source, IAM roles, timeouts, and resource-based policies—into a declarative API that generates CloudFormation templates during synthesis.

The package supports multiple code deployment patterns: inline code strings (up to 4 KiB), local filesystem assets (zipped and uploaded to S3), S3 bucket references, and Docker image builds. It integrates with other AWS CDK modules (IAM, CloudWatch, ECR, S3) to manage permissions, monitoring, and artifact storage. However, AWS CDK v1 reached end-of-support on 2023-06-01 and is no longer maintained; new projects should use AWS CDK v2 instead.

Use it for

  • Define Lambda functions with code from local directories or S3, automatically packaging and uploading assets during stack synthesis.
  • Configure Lambda execution roles and grant permissions to other AWS services or external principals using resource-based policies.
  • Set function timeouts and integrate with CloudWatch to monitor execution duration and create alarms.
  • Deploy Lambda functions from Docker images stored in ECR or built locally as CDK assets.
  • Manage Lambda versions and layers for canary deployments or shared code across multiple functions.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Skip

No—this is AWS CDK v1, which reached end-of-support on 2023-06-01 and receives no further updates.

Install only if you are maintaining an existing v1 codebase. For new projects, use AWS CDK v2 instead. The package itself has low install friction and a permissive license, but the maintenance status makes it unsuitable for new development.

Install

aws-cdk-aws-lambda on PyPI

Before you install

Low install friction with a pure-Python wheel. However, this is AWS CDK v1, which reached end-of-support on 2023-06-01 and is no longer being updated—users should migrate to AWS CDK v2 instead.

Requires AWS CDK v1 core library and constructs package; AWS credentials and local filesystem access for asset bundling.

License in practice

Licensed under Apache-2.0 (permissive), allowing commercial use, modification, and distribution with minimal restrictions.

Quickstart

from aws_cdk import aws_lambda as lambda_
from aws_cdk import core as cdk
import os

fn = lambda_.Function(self, "MyFunction",
    runtime=lambda_.Runtime.PYTHON_3_9,
    handler="index.main",
    code=lambda_.Code.from_asset(os.path.join(os.path.dirname(__file__), "lambda-handler"))
)

Verify before relying

  • Whether v1 receives any critical security patches despite end-of-support status.
  • Performance or compatibility implications of using v1 in new projects versus migrating to v2.

Package facts

LicenseApache-2.0 permissive
Python supportSupports the current Python release ~=3.7
Install frictionLow. Pure-Python wheel
Runtime dependencies
23 packages
aws-cdk.aws-applicationautoscalingaws-cdk.aws-cloudwatchaws-cdk.aws-codeguruprofileraws-cdk.aws-ec2aws-cdk.aws-ecr-assetsaws-cdk.aws-ecraws-cdk.aws-efsaws-cdk.aws-eventsaws-cdk.aws-iamaws-cdk.aws-kmsaws-cdk.aws-logsaws-cdk.aws-s3-assetsaws-cdk.aws-s3aws-cdk.aws-signeraws-cdk.aws-snsaws-cdk.aws-sqsaws-cdk.coreaws-cdk.cx-apiaws-cdk.region-infoconstructsjsiipublicationtypeguard
MaintenanceActively maintained 1,152 days since the last release
Last repo commit
First released
Downloads172,663 / month, #10,329 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 7 - InactiveFramework :: AWS CDKFramework :: AWS CDK :: 1Intended Audience :: DevelopersLicense :: OSI ApprovedOperating System :: OS IndependentProgramming Language :: JavaScriptProgramming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Typing :: Typed

Evidence: aws_cdk.aws_lambda-1.204.0-py3-none-any.whl

Tags

Capabilities
aws lambda cdk constructdefine lambda functions as codecdk lambda infrastructureaws lambda deployment automationlambda handler code management
Topics
end-of-supportinfrastructure-as-codeaws-cdk-v1

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “define lambda functions as code”

Give your agent the search over MCP, or paste the wish link into any chat.

More Build Tools packages

packaging Worth it
PyPI · Build Tools · released Aug 2026

Provides reusable utilities for Python packaging interoperability, including version handling, specifiers, markers, requirements, tags, and metadata parsing according to standards like PEP 440 and PEP 425.

Apache-2.0 OR BSD-2-Clausepure Python · 3.9+
2.2Bdownloads / mo
tqdm Worth it
PyPI · Libraries · released Jul 2026

Wraps any iterable to display a real-time progress bar in the terminal or Jupyter notebook, showing iteration count, elapsed time, and estimated time remaining.

copyleftpure Python · 3.8+
648.6Mdownloads / mo
pip Worth it
PyPI · Build Tools · released Aug 2026

pip is the standard installer for Python packages, enabling you to download and install packages from the Python Package Index and other indexes into your Python environment.

MITpure Python · 3.10+
617.5Mdownloads / mo
hatchling Worth it
PyPI · Python Modules · released Aug 2026

Hatchling is a standards-compliant Python build backend that handles packaging, metadata, and distribution of Python projects when configured in a project's pyproject.toml file.

MITpure Python · 3.10+
484.2Mdownloads / mo
grpcio-tools Worth it
PyPI · Build Tools · released Jul 2026

Generates Python gRPC service stubs and message classes from Protocol Buffer definitions, enabling developers to build gRPC clients and servers.

Apache-2.0compiled wheel · 3.10+
278.2Mdownloads / mo
pre-commit Worth it
PyPI · Build Tools · released Aug 2026

pre-commit is a framework for installing and running git hooks written in any language before commits are made, automating code quality and validation checks across multi-language projects.

Install it if your team needs consistent, automated validation at commit time.

permissive licensepure Python · 3.10+
179.9Mdownloads / mo

See also aws-cdk.aws-lambda-python-alpha · aws-cdk.aws-s3 · aws-cdk.aws-cloudwatch · aws-cdk.asset-awscli-v1 · kappa · aws-cdk.lambda-layer-kubectl-v35 · aws-cdk.aws-kms · aws-cdk.aws-iam · aws-cdk.core · datadog-cdk-constructs-v2