AWS Serverless Application Model

Open source developer tool that simplifies and improves the experience of building and running serverless applications on AWS

Benefits of AWS SAM

Streamline your serverless development cycle, quickly and efficiently taking an idea to production.

Develop, debug, and deploy your serverless applications with the AWS SAM CLI.

Define and manage your infrastructure code with AWS SAM templates.

Perform real-time debugging and testing in the cloud with AWS SAM Accelerate.

How it works

AWS Serverless Application Model (AWS SAM) consists of two parts: AWS SAM templates and the AWS Serverless Application Model Command Line Interface (AWS SAM CLI). AWS SAM templates provide a short-hand syntax, optimized for defining Infrastructure as Code (IaC) for serverless applications. An extension of AWS CloudFormation, you deploy AWS SAM templates directly to CloudFormation, benefiting from its extensive IaC support on AWS. The AWS SAM CLI is a developer tool that puts AWS SAM features at your fingertips. Use it to quickly create, develop, and deploy serverless applications. Some of the many features of AWS SAM include AWS Serverless Application Model Accelerate (AWS SAM Accelerate), which speeds up local development and cloud testing, and AWS SAM CLI integrations, extending AWS SAM to other tools such as the AWS Cloud Development Kit (AWS CDK) and Terraform.

Use cases

Use the AWS SAM CLI sam build and sam deploy commands to prepare your application for deployment and deploy to AWS.

Start using the AWS SAM CLI

Use the AWS SAM CLI sam sync command to watch for local changes and quickly deploy those changes to AWS. Then, use sam remote invoke to test your lambda functions in the cloud.

Learn more about AWS SAM CLI sam sync

Use the AWS SAM CLI sam pipeline command to create or modify pipelines for your continuous integration and continuous delivery (CI/CD) system.

Learn more about deploying serverless applications

Perform local debugging and testing of your Terraform projects with the AWS SAM CLI.

Learn more about AWS SAM CLI Terraform support

Customers

From emerging startups to the world's largest enterprises, over a million customers choose AWS Serverless solutions to modernize their businesses. See more customer stories »


Explore more of AWS