Managing serverless application resources can be either very manual, or you can automate the workflow. Automating the process can be tricky, though, if you have a complex infrastructure. This is where tools such as AWS CloudFormation, SAM, and Terraform come in.
In this chapter, we learned how to use infrastructure-as-code tools to automate the creation of the serverless application resources and dependencies in AWS. We saw tools that are cloud-specific, and loosely coupled ones that work on multiple platforms. Then, we saw how these tools can be used to deploy Lambda-based applications to AWS.
By now, you can write your serverless infrastructure code once and then use it many times. The code that defines the infrastructure can be versioned, forked, rolled back (going back in time), and used for auditing the infrastructure changes, just like any other code. Moreover...