Learned how to build a VPC with high availability, auto-scaling EC2 instances, and a bastion host for secure administration.
On a high-level, you’d you want your architecture to look more or less like this:
It’s a lot to go over, so we’ll cover each piece step by step.
First, create a Virtual Private Cloud (VPC). AWS will create some default components to go along with it, but we’ll be ignoring those.
Next, create the following subnets in different availability zones:
public-web01(enable auto-assign public ip)
public-web02(enable auto-assign public ip)
private-web01(same AZ as
private-web02(same AZ as
public-bastion(enable auto-assign public ip)
public-* subnets will represent our demilitarized zone (DMZ). In other words, this space will be exposed to the …