Hi Chris + Ajay,
Just wanted to share 3 quick reasons why I still don’t use SAM and why it’s not a self-contained solution (for me).
- Unable to embed my code directly in the template.
CloudFormation Example:
HitWebHookFunction:
Type: AWS::Lambda::Function
Properties:
Handler: lambda_function.lambda_handler
Code:
ZipFile: !Sub | CODE GOES RIGHT HERESAM Example:
HitWebHookFunction:
Type: AWS::Serverless:Function
Properties:
CodeURI: LINK TO S3 BUCKET GOES HEREThe key issues with the SAM approach are that I have to now have separate s3 buckets and separate deployments for every region I want this template to run in. It makes a simple task much harder.