Hands-on deployment with CloudFormation
In the previous chapter, we deployed an AMI with Hashicorp’s Packer, followed by EC2 instance creation. We didn’t have to worry about provisioning networks, public interfaces, internet gateways, and so on. This was possible because of the default VPC resources that were made available by AWS as part of the newly vended account. In real-life implementations, this is rarely the case. You design and implement the entire infrastructure stack from scratch, and automate its management with tools. This level of customization and automation of infrastructure provisioning is going to be our focus in this section. By quickly recapping the concepts we’ve discussed so far, we can get our hands dirty with actual code deployment activities. I will also walk you through some networking components along the way.
We will deploy our application as part of two CloudFormation stacks:
- Network stack: This will include all the networking...