In the previous recipe, we built a simple REST API using the AWS CLI. In this recipe, we will use the CloudFormation template to create an API and understand the benefits of using CloudFormation over the AWS CLI. Most enterprise projects use CloudFormation templates for their infrastructure provisioning in AWS.
Building your first API using Amazon CloudFormation
Getting ready
In this recipe, we will use the CloudFormation templates written in YAML. To deploy those templates, we will still use the AWS CLI. So, a basic understanding of CloudFormation, the AWS CLI, and YAML are good to have. If you are new to these, please refer to the respective Your first AWS Lambda recipe from Chapter 1, Getting Started with Serverless Computing...