1. First Go to VPC and Create VPC.
2 Then After create Subnet. IPv4 CIDR block should be 10.0.0.0/16
3.Create Route Table Attach your VPC with that.
4. Next we are going to Create Internet GatWay. Link Internet Gateway to Route Table. We will Check weather its attached or not
5. Next, Route table is connect internally. Go to Route Table click route. Check the destination and target should be local
6. Attach your internet gatway to your VPC.click om Action then attached VPC, select your VPC then attach internet Gateway.
7. Go to Routes Click on Edit Rule, 0.0.0.0/0 click on internet gateway, select the the gateway which we created earlier then save changes.
8. After that launch ec2 and use VPC and Subnet which we have created
9. Auto Assign IP enable. In step 3 of ec2 creation put these command
yum update -y
yum install -y httpd
service httpd start
We provide best AWS training classes in Gurgaon and Delhi. For more information about the course please call at +91 7289908088