concept

SAM templates and local tests

SAM extends CloudFormation through a serverless transform. Local invocation emulates function execution; pure handler tests do not establish cloud permissions or event integration.

Formal Syntax & Structure

aws syntaxaws
Transform: AWS::Serverless-2016-10-31

Working Example

Example Snippetaws
sam local invoke Quote -e event.json
AWS Reference