Ravi Sir's Cards › AWS
YAML macros or code?
This comparison card contrasts YAML macros or code. AWS SAM is described as cloudFormation macros + sam CLI. It also notes fast for classic serverless. AWS CDK is described as typeScript/Python constructs synthesize CFN. It also notes best for shared libs. The card pairs AWS SAM with low YAML ramp, and AWS CDK with strong reuse.
Read card text
What this card says
YAML macros or code?
AWS SAM
CloudFormation macros + sam CLI; fast for classic serverless.
AWS CDK
TypeScript/Python constructs synthesize CFN; best for shared libs.
Key points
Small Lambda apps, CFN-fluent teams.
Complex graphs, shared IAM packs.
Example
sam build/deploy.
Use when
Low YAML ramp.
Strong reuse.