Skip to main content

Posts

Showing posts with the label Aws ec2: creating instance with new vpc

CREATING EC2 UNDER NEW VPC AND SUBNET IN AWS

In this article we will create a new vpc and a subnet first.Then we will create a internet gateway and route the traffic through this gateway. creation of VPC From AWS dashboard Click VPC > Create VPC . Give a name tag, ipv4 addresss and click Yes Create creation of subnet    From VPC subnet > Click on subnet.Give subnet and select our vnet.Give necessery datails as follows and click yes create   creation of internet-gateway   From VPC dashboard > Internet gateways > Create Internet gateway.Give name and click create Creating Routing table Go to subnet Assosiation and attach ou subnet.Now go to routes and give Destination as 0.0.0.0/0 and target as internet gateway as follows   Creation of ec2 instance From dashboard > ec2 > Launch instance > Select the ami image we want(Here i selected amazon instance) > select size we want (t2.micro) > Now select number of instances,s...