Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AWS Internet Gateway can't see VPC

In the AWS Command Console, I have two VPCs, as shown by the following screenshot:

List of available VPCs

But when I create a new Internet Gateway to allow outside traffic into this VPC, it seems that I can't find the VPC and I can only create a new one:

Cannot select an existing VPC

This is frustrating because the original, "stand-alone" way of creating a VPC allows me to put in public subnet I.P as well as availability zone and others, while the "Create VPC" option doesn't give me much. What mistake am I making here?

like image 663
Jason Avatar asked Jan 30 '26 09:01

Jason


2 Answers

This message will appear if your existing VPCs already have an internet gateway attached.

This happens because you can only have a single internet gateway attached to a VPC at once, although this error message does not make that clear.

Only one internet gateway can be attached to a VPC at a time.

like image 113
Chris Williams Avatar answered Feb 01 '26 00:02

Chris Williams


Your VPC might have been automatically configured with IGW. You can identify that by VPC ID. In the internet Gateway, you will see if that VPC ID is attached to an IGW. You simply need to detach that particular IGW from your VPC.

like image 31
visionedison Avatar answered Jan 31 '26 23:01

visionedison