The AWS Serverless Application Model (SAM) CLI is an open-source CLI tool that helps you develop serverless applications containing Lambda functions, Step Functions, API Gateway, EventBridge, SQS, SNS and more. The AWS Serverless Application Model (SAM) is an open-source framework for building serverless applications. It provides shorthand syntax to express functions, APIs, databases, and event source mappings. With just a few lines per resource, you can define the application you want and model it using YAML. During deployment, SAM transforms and expands the SAM syntax into AWS CloudFormation syntax, enabling you to build serverless applications faster. To get started with building SAM-based applications, use the SAM CLI. SAM CLI provides a Lambda-like execution environment that lets you locally build, test, debug, and deploy AWS serverless applications.
Features
- Initialize serverless applications in minutes with AWS provided infrastructure templates with sam init
- Compile, build, and package Lambda functions with provided runtimes and with custom Makefile workflows, for zip and image types of Lambda functions with sam build
- Locally test a Lambda function and API Gateway easily in a Docker container with sam local commands on SAM and CDK applications
- Sync and test your changes in the cloud with sam sync in your developer environments
- Deploy your SAM and CloudFormation templates using sam deploy
- Quickly create pipelines with prebuilt templates with popular CI/CD systems using sam pipeline init