aws-sam-translator
AWS SAM Translator is a library that transform SAM templates into AWS CloudFormation templates
Decision gist · record as of 2026-08-14
Yes, if you need to programmatically transform SAM templates or integrate SAM template handling into custom tooling. The library is production-stable, actively maintained, permissively licensed, and has no known vulnerabilities. If you only deploy SAM applications via the CLI, install the SAM CLI instead, which includes this library as a dependency.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later; boto3 must be installed and configured with AWS credentials for full functionality.
- Low install friction with a pure Python wheel and four lightweight runtime dependencies (boto3, jsonschema, typing_extensions, pydantic).
- Actively maintained with a release from 2026-08-13 and 9563 repository stars.
License · maintenance · safety
Apache License 2.0 (permissive) — Licensed under Apache License 2.0 (permissive), allowing free use, modification, and distribution with minimal restrictions.
last release 2026-08-13 (1 days) · last repo commit 2026-08-13 · 9,563 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 54,775,041 downloads/mo, #541 on PyPI
Alternatives
Verify before relying
import json
from aws_sam_translator.translator import Translator
translator = Translator({}, None)
output = translator.translate(sam_template_dict, {})
print(json.dumps(output, indent=2))- Whether the package is intended for programmatic use or primarily as a dependency of the SAM CLI tool.
- Whether direct template transformation via this library is the recommended integration pattern versus using the SAM CLI.
- Performance characteristics when transforming large or complex SAM templates.
What it is and what it does
aws-sam-translator is the core library that powers AWS SAM's CloudFormation transformation. It takes SAM template dictionaries and converts them into standard CloudFormation templates, applying best practices like automatic IAM role creation, resource tagging, and syntax extension. The library is the engine behind the SAM CLI's deployment workflow and can be used programmatically to transform templates outside of the CLI context.
The package depends on boto3 for AWS integration, jsonschema for template validation, pydantic for data modeling, and typing_extensions for type hints. It supports Python 3.10 through 3.14 and is actively maintained by AWS, with no known security vulnerabilities. Installation is straightforward via pip with minimal system dependencies.
Use it for
- Programmatically transform SAM templates to CloudFormation for integration into custom deployment pipelines.
- Validate SAM template syntax and structure before deployment using the translator's parsing logic.
- Generate CloudFormation templates from SAM definitions for inspection, documentation, or manual review.
- Build tooling that extends or customizes SAM template transformation behavior.
- Test SAM template transformations in CI/CD workflows without invoking the full SAM CLI.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need to programmatically transform SAM templates or integrate SAM template handling into custom tooling.
The library is production-stable, actively maintained, permissively licensed, and has no known vulnerabilities. If you only deploy SAM applications via the CLI, install the SAM CLI instead, which includes this library as a dependency.
Install
aws-sam-translator on PyPI
Before you install
Low install friction with a pure Python wheel and four lightweight runtime dependencies (boto3, jsonschema, typing_extensions, pydantic). Actively maintained with a release from 2026-08-13 and 9563 repository stars.
Requires Python 3.10 or later; boto3 must be installed and configured with AWS credentials for full functionality.
License in practice
Licensed under Apache License 2.0 (permissive), allowing free use, modification, and distribution with minimal restrictions.
Quickstart
import json
from aws_sam_translator.translator import Translator
translator = Translator({}, None)
output = translator.translate(sam_template_dict, {})
print(json.dumps(output, indent=2))
Verify before relying
- Whether the package is intended for programmatic use or primarily as a dependency of the SAM CLI tool.
- Whether direct template transformation via this library is the recommended integration pattern versus using the SAM CLI.
- Performance characteristics when transforming large or complex SAM templates.
Package facts
| License | Apache License 2.0 permissive |
| Python support | Supports the current Python release !=4.0,<=4.0,>=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 4 packagesboto3jsonschematyping_extensionspydantic |
| Maintenance | Actively maintained 1 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 54,775,041 / month, #541 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableEnvironment :: ConsoleEnvironment :: Other EnvironmentIntended Audience :: DevelopersIntended Audience :: Information TechnologyLicense :: OSI Approved :: Apache Software LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: InternetTopic :: Software Development :: Build ToolsTopic :: Utilities |
Evidence: aws_sam_translator-1.112.0-py3-none-any.whl
Tags
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 › “SAM template to CloudFormation”
- aws-sam-translatorTransforms AWS Serverless Application Model (SAM) templates into…
- cfn-lintValidates AWS CloudFormation templates in YAML or JSON format against…
- aws-cdk.aws-samProvides AWS CDK v1 constructs for defining Serverless Application…
Give your agent the search over MCP, or paste the wish link into any chat.
More Internet packages
Botocore provides low-level, data-driven access to Amazon Web Services APIs, serving as the foundation for the AWS CLI and boto3 libraries.
Install it if you need programmatic access to AWS services.
Provides an async client for AWS services using botocore and aiohttp, allowing you to call AWS APIs asynchronously within asyncio-based applications.
Install it if you need to call AWS services from async Python code; it is the standard way to do so.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides a platform-independent file locking mechanism to coordinate access to files across processes and threads.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides common Protocol Buffer message definitions used across Google Cloud APIs, enabling Python clients to interact with Google services.
See also aws-sam-cli · troposphere · aws-cdk.aws-sam · cfn-flip · aws-lambda-builders · cfn-lint · cfnresponse · aws-cdk.aws-cloudformation · mangum · aws-cdk.assets