In the previous section, we demonstrated methods for creating a VPC. In this section, we're going to discuss what you need to do to securely connect to your VPC. We're going to look at the two types of gateways, the internet gateway and a virtual private gateway. Then, we're going to discuss making a hardware VPN connection from your data center to a virtual private gateway, or using a traditional software VPN. Next, we'll briefly discuss connecting over a private dedicated line using direct connect. Finally, we'll talk about connecting two VPCs together using peering. In our VPC example shown earlier, we created an internet gateway and attached it to our VPC.
An internet gateway is a service managed by AWS that connects the internet to your VPC. It is highly available, and scales to meet your traffic requirements:
For an instance to be directly reachable from the internet, it needs to have a public or elastic IP, and it needs to be launched in a subnet...