skillfed

aws-cdk.aws-sam

The CDK Construct Library for the AWS Serverless Application Model (SAM) resources

aws-cdk-aws-sam v1.204.0 145.1K downloads/30d#11,136 on PyPI12,868
Permissive license Apache-2.0 Active released

What it is and what it does

This package is part of AWS CDK v1 and provides low-level (L1) constructs for the Serverless Application Model (SAM), allowing you to define serverless AWS resources as Python code. It translates those definitions into CloudFormation templates that AWS can deploy.

Because AWS CDK v1 reached end-of-support on 2023-06-01, this package is no longer maintained or updated. The description explicitly recommends migrating to AWS CDK v2 instead. If you are starting a new project, you should use v2; this package is suitable only for maintaining existing v1 codebases, not for new development.

Use it for:

  • Maintaining existing AWS CDK v1 projects that define serverless infrastructure in Python
  • Converting CloudFormation SAM templates to CDK code using L1 constructs as a bridge
  • Learning CDK fundamentals through v1 documentation before migrating to v2
  • Defining serverless resources declaratively in code for existing v1 deployments

Worth the install?

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

Provides AWS CDK v1 constructs for defining Serverless Application Model (SAM) resources in Python, enabling Infrastructure-as-Code definitions of serverless AWS applications.

No, unless you are actively maintaining an existing AWS CDK v1 codebase. The package is end-of-support as of 2023-06-01 and receives no updates. New projects should use AWS CDK v2 instead. Existing v1 users should plan a migration to v2.

Install

aws-cdk-aws-sam on PyPI

pip

pip install aws-cdk-aws-sam

uv

uv add aws-cdk-aws-sam

poetry

poetry add aws-cdk-aws-sam

Installing aws-cdk.aws-sam

Before you install

Low install friction with a stable dependency chain. However, this package reached end-of-support on 2023-06-01 and is no longer being updated; AWS CDK v1 has been superseded by v2, and users are advised to migrate rather than adopt this version.

License in practice

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

Quickstart

pip install aws-cdk.aws-sam==1.204.0
import aws_cdk.aws_sam as serverless

AWS CDK v1 reached end-of-support on 2023-06-01 and is no longer maintained; new projects should use AWS CDK v2 instead.

Verify before relying

  • Whether L1 constructs remain functional with current AWS CloudFormation SAM resource definitions
  • Migration path complexity and tooling support for moving from v1 to v2

Package facts

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

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

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

Tags

AWS SAM CDK constructsserverless application model infrastructureAWS CDK serverless resourcesinfrastructure as code SAMCloudFormation serverless constructsAWS Lambda CDK definitions
end-of-lifeinfrastructure-as-codeaws

More Application Frameworks packages

fastapi

FastAPI is a Python web framework for building…

permissive · top 100 on PyPI

annotated-doc

Provides a way to document function parameters,…

permissive · top 100 on PyPI

textual

Textual is a Python framework for building…

permissive · top 100 on PyPI

typer

Typer builds command-line applications from…

permissive · top 1,000 on PyPI

mcp

Build and connect to Model Context Protocol…

permissive · top 1,000 on PyPI

Werkzeug

Werkzeug is a WSGI utility library providing…

permissive · top 1,000 on PyPI

aws-cdk.aws-imagebuilder

Provides AWS CDK L1 constructs for defining and…

permissive · top 15,000 on PyPI

aws-cdk.aws-ssm

Provides CDK constructs for defining AWS…

permissive · top 15,000 on PyPI

aws-cdk.aws-stepfunctions

Provides Python constructs for defining AWS…

permissive · top 15,000 on PyPI

aws-cdk.core

Provides the core construct classes and stack…

permissive · top 15,000 on PyPI

aws-sam-translator

Transforms AWS Serverless Application Model…

permissive · top 1,000 on PyPI

aws-cdk.aws-amplify-alpha

Defines AWS Amplify hosting infrastructure as…

permissive · top 15,000 on PyPI

aws-sam-cli

AWS SAM CLI is a command-line tool for…

permissive · top 5,000 on PyPI

aws-cdk.aws-lambda-python-alpha

Provides AWS CDK constructs for defining,…

permissive · top 5,000 on PyPI

aws-cdk.aws-sqs

Provides AWS CDK constructs for defining Amazon…

permissive · top 15,000 on PyPI

aws-cdk.aws-cloudformation

Defines AWS CloudFormation resources…

permissive · top 15,000 on PyPI