Creating a VPC Network
1. In services, go to VPC and click Create VPC.
2. In the IPv4 CIDR block, enter the IP address 10.0.0.0/16
3. The VPC is launched.
4. 'Project-vpc' is now made available.
5. Now let us create 4 subnets (2 public and 2 private subnets)
6. All 4 subnets have been created.
7. Time to create an Internet gateway.
8. Successfully created an internet gateway 'Swetha's Internet Gateway'.
9. We have to attach this igw to the vpc created.
10. Now let us create Route tables. (One for public subnets and one for private subnets)
11. Edit the subnet associations.
12. Similarly create another route table for private subnets.
13. Edit the subnet associations for this one as well.
14. Configure the public route table to route all requests to the ISP
15. Create a fresh EC2 instance, change the VPC and subnet in network settings
16. Similarly create a new instance in VPC again with a public subnet
17. Now the public subnet can be accessed via public IP
Comments
Post a Comment