Рет қаралды 1,000
This video explains how to set up VPC and create a EC2 instance with public subnet and access internet from EC2 in aws. and This video explain how to create public ec2 instance in aws , connect ec2 to internet .Connect to the internet using an internet gateway .The video explains creation of VPC, how to enter CIDR ipaddress for vpc, subnetting and setting security group for the instance.To enable access to or from the internet for instances in a subnet in a VPC using an internet gateway, you must do the following.A WS Internet Gateway and VPC Routing set up
Steps
Create an internet gateway and attach it to your VPC.
Add a route to your subnet's route table that directs internet-bound traffic to the internet gateway.
Ensure that instances in your subnet have a public IPv4 address or an IPv6 address.
Ensure that your network access control lists and security group rules allow the desired internet traffic to flow to and from your instance.