Skip to content

Internet Gateways & Route tablesΒΆ

If we want to create an AWS EC2 instance in the subnet with a public IP address, we need to modify the [[public subnet]] to [[auto-assign IP]]s.

When created, we can see that we have a private IP of 10.0.0.250 and a public IP of 54.246.162.86.

Now, even though our security group allows this, if we were to try to connect to it via [[ssh]], the connection would time out.

This is because the subnet does not have an Internet Gateway & Route tables.

Internet Gateway

Route Table