<aside> 🔥 Trending on r/aws on 05/19/2021
</aside>
May 19, 2021 Rahul Sharma
IaC has become the preferred way of deploying, scaling, and managing cloud infrastructure. In this article, we will compare four options of writing IaC on AWS by creating the same app in four different ways (CDK, SAM, CloudFormation, and Terraform).
We are going to build a REST API using API Gateway, Lambda, and DynamoDB. The API will have three endpoints as listed below.
# Fetch all books
GET /books
# Fetch a single book by id
GET /books/{id}
# Create a new book
POST /books
# Book schema
Book {
id: string
name: string
}