Skip to content

AWS SAM

The AWS Serverless Application Model is a CloudFormation transform: a small set of high-level resource types that expand into ordinary CloudFormation resources, plus a CLI that can build, test and deploy them. Its value is that a Lambda function with an API route, permissions and a log group is roughly ten lines instead of a hundred.

AWS SAM covers the template syntax, the resource types, local testing with the SAM CLI, and safe deployment of Lambda functions with CodeDeploy traffic shifting.

AWS infrastructure as code options compares SAM with CloudFormation, the AWS CDK and Service Catalog, and says which to reach for when.