The story of SAM starts back with few of the caveats faced by AWS CloudFormations. Although immensely powerful in it's automated infrastructure deployment capabilities, CloudFormations is still a tool that's not that easy to work with and maintain. A simple infrastructure deployment template can range anywhere from a 100 lines to even a 1,000 lines depending on the way the template is authored. More so, CloudFormation lacked the specialized resource types optimized for defining serverless applications which is why project Flourish was established which later on became known as SAM.
SAM is an extension of CloudFormation and basically provides developers with a really simplified way of writing CloudFormation-like templates for serverless services such as API Gateway, DynamoDB and even Lambda.
The main goal...