What is the Amazon Serverless Application Model (Amazon SAM)?
Amazon Serverless Application Model (Amazon SAM) is an open-source framework for building serverless applications using infrastructure as code (IaC).
With Amazon SAM’s shorthand syntax, developers declare Amazon CloudFormation
Key features
Amazon SAM offers a variety of benefits that improve the developer experience by allowing you to:
- Define your application infrastructure code quickly, using less code
-
Author Amazon SAM templates to define your serverless application infrastructure code. Deploy your templates directly to Amazon CloudFormation to provision your resources.
- Manage your serverless applications through their entire development lifecycle
-
Use the Amazon SAM CLI to manage your serverless application through the authoring, building, deploying, testing, and monitoring phases of your development lifecycle. For more information, see The Amazon SAM CLI.
- Quickly provision permissions between resources with Amazon SAM connectors
-
Use Amazon SAM connectors in your Amazon SAM templates to define permissions between your Amazon resources. Amazon SAM transforms your code into the IAM permissions required to facilitate your intent. For more information, see Managing resource permissions with Amazon SAM connectors.
- Continuously sync local changes to the cloud as you develop
-
Use the Amazon SAM CLI sam sync command to automatically sync local changes to the cloud, speeding up your development and cloud testing workflows. For more information, see Introduction to using sam sync to sync to Amazon Web Services Cloud.
- Manage your Terraform serverless applications
-
Use the Amazon SAM CLI to perform local debugging and testing of your Lambda functions and layers. For more information, see Amazon SAM CLI Terraform support.
Related information
For information on how Amazon SAM works, see How Amazon SAM works.
To start using Amazon SAM, see Getting started with Amazon SAM.
For an overview on how you can use Amazon SAM to create a serverless application, see How to use Amazon SAM.