AWS SAM
Serverless Application Model
ELI5 — The Vibe Check
SAM is CloudFormation's serverless-focused little sibling. Instead of writing 200 lines of YAML to deploy a Lambda, you write 20. It extends CloudFormation with shortcuts specifically for serverless apps — functions, APIs, event sources. Think of it as CloudFormation with training wheels that actually make you go faster.
Real Talk
AWS Serverless Application Model (SAM) is an open-source framework for building serverless applications. It extends CloudFormation with simplified syntax for defining Lambda functions, API Gateway APIs, and DynamoDB tables. The SAM CLI provides local testing, debugging, and deployment capabilities.
Show Me The Code
# template.yaml
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Resources:
MyFunction:
Type: AWS::Serverless::Function
Properties:
Handler: app.handler
Runtime: nodejs20.x
Events:
Api:
Type: Api
Properties:
Path: /hello
Method: get
When You'll Hear This
"SAM local lets us test Lambda functions on our machine before deploying." / "Our serverless stack is defined in a SAM template."
Related Terms
AWS CDK (Cloud Development Kit)
CDK lets you define your cloud infrastructure using actual programming languages instead of YAML.
Infrastructure as Code
ClickOps means building your cloud infrastructure by clicking buttons in AWS console.
Serverless
Serverless doesn't mean there are no servers — it means YOU don't have to think about servers. Someone else manages them, scales them, and patches them.