Create a VPC network and Attach 4 Subnet, 3 Private and 1 public subnet.
In the aws dashboard search for virtual private cloud. then click on create VPC
Click on create VPC
Create four different subnets in different availability zones
now create Internet gateway, for this we can use the existing gateway or create new
Now all the subnets in vpc are ready. let's launch the EC2 instance of each public and private ec2.
Create a fresh EC2 instannce, chnage the VPC and subnet in network settings
similarly create a new instance in VPC again with public subnet
Comments
Post a Comment