Sep 13, 2018

How to connect an Amazon AWS instance to the Internet in a non-default VPC

To connect an instance to the Internet in a non-default VPC, you will need to do the following:


  1. Launch an instance.
  2. Attach an Internet gateway to the VPC of the instance.
  3. Add a 0.0.0.0/0 route pointed to the Internet gateway in the route table associated to the subnet of the instance.
  4. Check that the security group and network access list allow appropriate ports and sources.