$npx skillfedfor your agent

aws-sam-translator

AWS SAM Translator is a library that transform SAM templates into AWS CloudFormation templates

With conditionsPyPI InternetReleased Aug 202654.8M downloads / moApache License 2.0Pure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — aws_sam_translator-1.112.0-py3-none-any.whl
v1.112.0 · released 2026-08-13 · Python !=4.0,<=4.0,>=3.10 · 4 runtime deps: boto3, jsonschema, typing_extensions, pydantic

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

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.
Same gist for agents: .md · .json

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.

With conditions

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

LicenseApache License 2.0 permissive
Python supportSupports the current Python release !=4.0,<=4.0,>=3.10
Install frictionLow. Pure-Python wheel
Runtime dependencies
4 packages
boto3jsonschematyping_extensionspydantic
MaintenanceActively maintained 1 days since the last release
Last repo commit
First released
Downloads54,775,041 / month, #541 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone 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

Capabilities
SAM template to CloudFormationAWS serverless application modelCloudFormation macro transformserverless infrastructure as codeSAM template translatorAWS Lambda template generationserverless application deployment
Topics
aws-serverlesscloudformationinfrastructure-as-code
PyPI keywords
AWSSAMServerlessApplicationModel

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 Worth it
PyPI · Internet · released Aug 2026

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.

permissive licensepure Python · 3.10+
1.5Bdownloads / mo
aiobotocore Worth it
PyPI · Internet · released Aug 2026

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.

Apache-2.0pure Python · 3.10+
1.2Bdownloads / mo
pydantic Worth it
PyPI · Python Modules · released May 2026

Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.

MITpure Python · 3.9+
1.1Bdownloads / mo
filelock Worth it
PyPI · Libraries · released Aug 2026

Provides a platform-independent file locking mechanism to coordinate access to files across processes and threads.

MITpure Python · 3.10+
717.1Mdownloads / mo
fastapi Worth it
PyPI · Software Development · released Jul 2026

FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.

MITpure Python · 3.10+
568.6Mdownloads / mo
googleapis-common-protos Worth it
PyPI · Internet · released Aug 2026

Provides common Protocol Buffer message definitions used across Google Cloud APIs, enabling Python clients to interact with Google services.

Apache-2.0pure Python · 3.10+
513.7Mdownloads / mo

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