AWS SAM is a framework for building Serverless applications on AWS, it uses concise declarative code templates to define and interconnect resources such as functions, tables, state machines, and more. SAM is composed of a template specification based on CloudFormation and a CLI tool for managing application lifecycle:
The following are some AWS SAM’s advantages:
- One tool for the entire serverless application lifecycle: the SAM CLI is incredibly powerful allowing developers to develop their functions and APIs locally before deploying seamlessly into the different environments. This follows best practices and effortlessly integrates with CI/CD tools.
- Specification extending CloudFormation: AWS SAM is built on top of CloudFormation which allows building AWS infrastructure using declarative code templates and offers many features like intrinsic functions, parameters, changesets, and more. SAM further simplifies infrastructure management with a clean concise syntax.