Introduction to AWS SAM
Discover the benefits of AWS SAM for defining serverless resources and simplifying deployments compared to raw CloudFormation.
Welcome to AWS SAM!
Hello! Today we'll explore AWS SAM, the Serverless Application Model. It's an open-source framework designed to help you build serverless applications on AWS more efficiently.
Think of SAM as a powerful extension to AWS CloudFormation, specifically tailored for serverless resources.
CloudFormation's Verbosity
AWS CloudFormation is a robust service for defining infrastructure as code. However, building serverless applications directly with CloudFormation can be quite verbose.
- A simple AWS Lambda function often requires defining the Lambda resource itself, an IAM role with permissions, and possibly an API Gateway endpoint.
- This can lead to many lines of configuration for even basic setups.