title: How to Give Lambda in VPC Access To The Internet AWS?
body: <p>I have a lambda function part of a VPC but it doesn't have access to the internet.</p>
  <p>I have done the following things:</p>
  <ul>
  <li>I created a VPC with DNS hostnames enabled and DNS resolution enabled.</li>
  <li>I created 2 subnets under that VPC with different AZ.</li>
  <li>I created an internet gateway and attached it to my VPC</li>
  <li>I created a route table in my VPC and added 0.0.0.0/0 and ::/0 as the destinations and the internet gateway ID in the target list</li>
  <li>I attached a new security group to my lambda function that allows all outbound traffic</li>
  </ul>
  <p>After doing all of that, my lambda function still can't access the internet and just times out.</p>
  <p>Any help would be much appreciated!</p>