Why CDK?
When SAM is enough
When SAM stops scaling
What CDK gives you
Type-checked resource definitions
Resources:
InferenceFunction:
Type: AWS::Serverless::Function
Properties:
Runtime: python3.12
Handler: handler.lambda_handler
Policies:
- Statement:
- Effect: Allow
Action: bedrock:InvokeModel
Resource: "*"Automatic cross-resource wiring
Constructs compose
Synthesize before deploy
When to stay with SAM
Summary
Dimension
SAM
CDK
Last updated