Building Serverless Web Applications
上QQ阅读APP看书,第一时间看更新

AWS CloudFormation

CloudFormation gives to developers the possibility to script the entire infrastructure using templates. This approach is called as Infrastructure as a Code. It's a powerful feature because it makes it easy to reproduce the configuration of servers and resources into another region or in a different account. Furthermore, you can version control your scripts to help you with the development of your infrastructure. As a quick start, AWS offers many sample templates (https://aws.amazon.com/cloudformation/aws-cloudformation-templates) for common use cases.

In this book, we will not use CloudFormation directly, but in the next chapter, we'll start using the Serverless Framework that extensively uses CloudFormation under the hood to manage resources. That's how you can easily duplicate your solution to different environments, making a production deployment an exact copy of the development or staging environment.