# aws/aws-sam-cli

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/aws-aws-sam-cli).**

6,732 stars · 1,226 forks · Python · Apache-2.0

## Links

- GitHub: https://github.com/aws/aws-sam-cli
- Homepage: https://aws.amazon.com/serverless/sam/
- awesome-repositories: https://awesome-repositories.com/repository/aws-aws-sam-cli.md

## Topics

`api-gateway` `aws` `docker` `lambda` `python` `sam` `serverless` `serverlessapplicationmodel`

## Description

The AWS SAM Command Line Interface is a development toolkit used to define, emulate, and manage the lifecycle of serverless infrastructure. It serves as an infrastructure as code tool and a wrapper for AWS CloudFormation, allowing users to describe cloud resources through declarative templates.

The project differentiates itself by providing a local serverless emulator that uses containers to execute and debug functions before they are deployed. It also enables rapid cloud iteration through real-time synchronization, which monitors local source code for changes and automatically pushes updates to the cloud environment.

The tool covers the full serverless lifecycle, including application artifact building, packaging, and automated deployment pipelines. It also includes capabilities for simulating event sources with mock JSON files, managing resource permissions, and converting existing cloud assets into versioned infrastructure templates.

## Tags

### Development Tools & Productivity

- [AWS Local Development Environments](https://awesome-repositories.com/f/development-tools-productivity/aws-local-development-environments.md) — Provides a comprehensive local development environment for building and deploying AWS serverless applications.
- [Command Line Interfaces](https://awesome-repositories.com/f/development-tools-productivity/command-line-interfaces.md) — Ships a comprehensive command-line interface for building, testing, and deploying serverless applications.
- [Local Emulation Environments](https://awesome-repositories.com/f/development-tools-productivity/local-emulation-environments.md) — Simulates the cloud runtime environment locally using containers for function execution and debugging.
- [Real-Time Synchronization](https://awesome-repositories.com/f/development-tools-productivity/local-file-syncing/real-time-synchronization.md) — Monitors local source directories for changes to automatically trigger synchronized updates to the cloud.
- [Local Function Execution](https://awesome-repositories.com/f/development-tools-productivity/local-function-execution.md) — Provides utilities to execute and debug serverless functions and layers in a local environment. ([source](https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/index.html))

### DevOps & Infrastructure

- [Automated Deployment Pipelines](https://awesome-repositories.com/f/devops-infrastructure/automated-deployment-pipelines.md) — Automates the flow of infrastructure templates from version control to staging and production environments. ([source](https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/what-is-sam.html))
- [Cloud Deployment](https://awesome-repositories.com/f/devops-infrastructure/cloud-deployment.md) — Uploads application artifacts and provisions cloud resources by transforming project templates into stacks. ([source](https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-quick-start.html))
- [CloudFormation Templates](https://awesome-repositories.com/f/devops-infrastructure/cloud-infrastructure-deployment/managed-infrastructure-deployment/infrastructure-deployment-provisioning/cloudformation-templates.md) — Provides a simplified syntax for generating and deploying AWS CloudFormation templates tailored for serverless architectures.
- [Local Serverless Testing](https://awesome-repositories.com/f/devops-infrastructure/cloud-infrastructure/cloud-computing-serverless/serverless-execution-environments/serverless-function-runtimes/local-serverless-testing.md) — Runs and debugs cloud functions on a local machine using containers to simulate the AWS environment.
- [Serverless Deployment Tooling](https://awesome-repositories.com/f/devops-infrastructure/cloud-provisioning/serverless-deployment-tooling.md) — Packages and automates the delivery of serverless stacks to staging and production environments.
- [Declarative Infrastructure Templates](https://awesome-repositories.com/f/devops-infrastructure/declarative-infrastructure-templates.md) — Transforms declarative configuration templates into complex cloud infrastructure definitions.
- [Infrastructure as Code Tools](https://awesome-repositories.com/f/devops-infrastructure/infrastructure-as-code-tools.md) — Implements a toolkit for managing the full lifecycle of cloud resources using versioned declarative templates.
- [Infrastructure as Code](https://awesome-repositories.com/f/devops-infrastructure/infrastructure/infrastructure-as-code.md) — Defines and manages cloud infrastructure through version-controlled declarative templates.
- [Serverless Provisioning](https://awesome-repositories.com/f/devops-infrastructure/serverless-deployment/serverless-provisioning.md) — Creates and configures serverless cloud resources like functions and buckets based on defined templates. ([source](https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-example-s3.html))
- [Application Packaging](https://awesome-repositories.com/f/devops-infrastructure/application-packaging.md) — Bundles application code and templates into deployment packages for storage bucket upload. ([source](https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-example-s3.html))
- [Containerized Building](https://awesome-repositories.com/f/devops-infrastructure/build-artifact-management/build-artifact-transformation/containerized-building.md) — Processes source code and dependencies into deployable formats using containers for environment consistency. ([source](https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-quick-start.html))
- [Real-time Cloud Sync](https://awesome-repositories.com/f/devops-infrastructure/cloud-deployment/local-to-cloud-conversions/real-time-cloud-sync.md) — Syncs local code changes to the cloud in real time to accelerate the testing and development cycle.
- [Cloud Function Invocation Tools](https://awesome-repositories.com/f/devops-infrastructure/cloud-function-invocation-tools.md) — Triggers deployed cloud functions from the command line to verify behavior in a live environment. ([source](https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-quick-start.html))
- [Declarative Infrastructure Definitions](https://awesome-repositories.com/f/devops-infrastructure/declarative-infrastructure-definitions.md) — Uses a declarative template syntax to specify the desired state of serverless infrastructure resources. ([source](https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/what-is-sam.html))
- [Build Artifact Deployment](https://awesome-repositories.com/f/devops-infrastructure/deployment-platforms/deployment-artifact-specifications/build-artifact-deployment.md) — Bundles compiled binaries and metadata into deployable packages for distribution to cloud storage.

### Security & Cryptography

- [Policy Generation](https://awesome-repositories.com/f/security-cryptography/identity-and-access-management/resource-access-policies/policy-generation.md) — Translates high-level resource definitions into detailed identity and access management policies.

### Software Engineering & Architecture

- [Mock Event Triggering](https://awesome-repositories.com/f/software-engineering-architecture/event-buses/event-bus-mocks/mock-event-triggering.md) — Triggers local function execution using predefined JSON files to simulate cloud-native event sources.
