So, let's put all of this knowledge together. In this section, we will create a CloudFormation template that will create the following networking services:
- A VPC named simpleVPC
- Two public subnets with an internet gateway attached in two different availability zones
- Two private subnets with two different availability zones
- An NACL that will allow only MySQL traffic into and out of the private subnets
We will also create a key-value tag, purpose : demo, on all the resources so that we can easily identify them in the management console.