To create E2C instances in the public subnet, follow these steps:
- Select an Amazon Linux AMI.
- Create a t2.micro instance within your My_VPCÂ and Public_Subnet.
- Set the Auto-assign Public IP option as Enable.
- Add a tag of Name with a value of Public_Instance.
- Select the Public_Security_Group security group when prompted to select a security group at step 6.
- Accept all other defaults.
- Download a new key pair.
With our EC2 instances created, our next step is to create a route table for our private subnet.