In order to achieve the goal of this lab, you will have to go through the following steps:
Create a new VPC with the Name tag lab-002 and the IPv4 CIDR block 192.168.0.0/16.
Create an Internet gateway with the Name tag lab-002 and attach it to lab-002 VPC.
Create a public subnet on lab-002 VPC with the Name tag public and IPv4 CIDR block 192.168.100.0/24.
Enable Auto-assign IPv4 in the newly created public subnet.
Create a new route table with the Name tag public and with a default route to the internet gateway created in step 2.
Associate the newly created route table to the public subnet.
Create a private subnet on lab-002 VPC with the Name tag private and the IPv4 CIDR block 192.168.200.0/24.
Launch two EC2 instances using the procedure described in lab-001; make sure that each subnet has one of the instances.
Note that the EC2 instance that you will create in the public subnet (labeled as A in the diagram) is necessary so you can later connect to the EC2 instance in the private subnet (labeled as B in the diagram). EC2 A is normally called bastion host or jump host.
No comments:
Post a Comment