Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Amazon Web Services
  3. aws-sam-local

aws-sam-local

Apache-2.0Pythonv1.161.1

A CLI tool to build, test, debug, and deploy serverless applications using AWS SAM.

Visit WebsiteGitHubGitHub
6.7k stars1.2k forks0 contributors

What is aws-sam-local?

AWS SAM CLI is a command-line tool that helps developers build, test, debug, and deploy serverless applications using the AWS Serverless Application Model (SAM). It provides a local development environment that emulates AWS services like Lambda and API Gateway, enabling faster iteration and testing before deploying to the cloud.

Target Audience

Developers and DevOps engineers building serverless applications on AWS, particularly those using AWS SAM or CloudFormation templates who want efficient local testing and deployment workflows.

Value Proposition

It significantly accelerates serverless development by allowing local testing and debugging, reducing dependency on cloud deployments for every change, and integrates seamlessly with AWS services and CI/CD pipelines.

Overview

CLI tool to build, test, debug, and deploy Serverless applications using AWS SAM

Use Cases

Best For

  • Developing and testing AWS Lambda functions locally before deployment
  • Building serverless APIs with API Gateway and Lambda
  • Debugging complex serverless applications in a local Docker environment
  • Automating deployment of SAM or CloudFormation templates
  • Setting up CI/CD pipelines for serverless projects
  • Rapid prototyping of serverless architectures with pre-built templates

Not Ideal For

  • Projects targeting multi-cloud or non-AWS environments
  • Teams already using Terraform or other non-CloudFormation infrastructure-as-code tools
  • Applications heavily dependent on AWS services without robust local emulation (e.g., Aurora, Kinesis)
  • Developers seeking minimal setup without Docker for local testing

Pros & Cons

Pros

Local Testing Environment

Emulates Lambda and API Gateway in Docker containers, allowing full debugging and testing without cloud deployments, as highlighted by the `sam local` commands.

Cloud Sync Feature

The `sam sync` command enables rapid iteration by synchronizing code changes directly to AWS for testing, reducing feedback loops from minutes to seconds.

Build Flexibility

Supports custom build workflows with Makefile and handles both zip and image-based Lambda deployments via `sam build`, accommodating diverse project needs.

CI/CD Integration

Automates pipeline setup with prebuilt templates for popular systems like Jenkins and GitHub Actions using `sam pipeline init`, speeding up DevOps configuration.

Cons

Docker Dependency

Local execution requires Docker, which adds resource overhead and setup complexity, making it less lightweight for quick, ad-hoc testing.

AWS Ecosystem Lock-in

Designed exclusively for AWS services, so it's ineffective for hybrid or multi-cloud projects, limiting flexibility compared to agnostic tools.

Incomplete Local Emulation

Not all AWS services are fully supported locally (e.g., EventBridge or SQS may have limited emulation), requiring cloud testing for some integrations.

Frequently Asked Questions

Quick Stats

Stars6,714
Forks1,225
Contributors0
Open Issues467
Last commit3 days ago
CreatedSince 2017

Tags

#api-gateway#lambda#devops#serverless#python#docker#cli#local-development#aws#cloudformation

Built With

C
Click
P
Python
D
Docker

Links & Resources

Website

Included in

Amazon Web Services14.0k
Auto-fetched 1 day ago

Related Projects

serverlessserverless

⚡ Serverless Framework – Effortlessly build apps that auto-scale, incur zero costs when idle, and require minimal maintenance using AWS Lambda and other managed cloud services.

Stars46,924
Forks5,733
Last commit4 days ago
chromelesschromeless

🖥 Chrome automation made simple. Runs locally or headless on AWS Lambda.

Stars13,229
Forks568
Last commit7 years ago
ZappaZappa

Serverless Python

Stars11,839
Forks1,174
Last commit3 years ago
lambcilambci

A continuous integration system built on AWS Lambda

Stars3,969
Forks184
Last commit2 years ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub