AWS SAM template is an abstraction layer, runs on the top of CloudFormation,  for creating serverless resources. So, when you run a SAM template to create a Lambda function or an  API gateway, it generates a CloudFormation stack behind the scene. The main purpose is ease-of-management of serverless resources in AWS.Â
SAM Vs. CloudFormation: when to use AWS Â SAM instead of CloudFormation?
Though there are multiple ways of creating serverless resources like serverless framework, CloudFormation, Terraform, and AWS CDK, the SAM template can be run locally to test your code before deploying it on AWS, which can help to minimize test time and cost as well. Besides, you can use it for rapid prototyping of your serverless applications. [Read more…] about 3 Easy Steps to Create and Deploy AWS SAM Template
