Getting started with AWS Lambda is easy – you don't have to provision and manage any underlying infrastructure and it's very cheap to get something useful up and running in a few seconds. Plus, a great advantage of AWS Lambda over EC2 is that you don't have to pay for idle resources. This is extremely powerful, but it's also one of Lambda's biggest risks. It's very common to forget about cost during development, but once you start running heavy workloads and multiple functions in production, cost can be significant. Hence, it's very important to keep track of Lambda cost and usage before this becomes an issue.
The final chapter will introduce the concept of Infrastructure as Code (IaC) to help you design and deploy your N-tier serverless application in an automated way, in order to avoid human errors and repeatable tasks.
...