Infrastructure as Code (IaC), as the term sounds, is a management of infrastructure (which includes networks, virtual machines, load balancers, and connection topology) in a descriptive model (such as JSON or YAML). This chapter is all about setting up your infrastructure. Since we are using AWS, we would like to automate our infrastructure using CloudFormation and Ansible. The following are the recipes that we will be covering in this chapter:
- AWS CloudFormation and writing the CloudFormation template
- Creating a production-ready Web application infrastructure using CloudFormation
- Automation with Ansible
- Creating an AWS infrastructure using the Ansible EC2 dynamic inventory