What is SAM?
- Sort of a bridge between Lambda and CF
- It’s an open-source framework for serverless
- It’s a CloudFormation extension for serverless
- It has its own CLI to provide a lambda-like env for local
What format is SAM template?
- YAML not JSON
- (Same as CloudFormation)
Why’s it nice?
- Slap our templates into source control!
- Nice to be able to deploy to another region easily
Can we include Lambda code in CF templates?
- Lambda -> SAM -> CF -> CF Template -> CF Stack
How can we include SAM code in CF templates?
- Using the transform function (?)
What’s in a SAM template?
- Transform function