Delete an internet gateway - Amazon Virtual Private Cloud (original) (raw)

If you no longer need internet access for a VPC, you can detach the internet gateway from the VPC and then delete it. You can't delete an internet gateway if it's still attached to a VPC. You can't detach an internet gateway if the VPC has resources with associated public IP addresses or Elastic IP addresses.

To detach an internet gateway from a VPC using the console
  1. Open the Amazon VPC console athttps://console.aws.amazon.com/vpc/.
  2. In the navigation pane, choose Internet gateways.
  3. Select the check box for the internet gateway.
  4. To attach it, choose Actions, Attach to VPC, select an available VPC, and choose Attach internet gateway.
  5. To detach it, choose Actions, Detach from VPC and choose Detach internet gateway. When prompted for confirmation, choose Detach internet gateway.
To delete an internet gateway using the console
  1. Open the Amazon VPC console athttps://console.aws.amazon.com/vpc/.
  2. In the navigation pane, choose Internet gateways.
  3. Select the check box for the internet gateway.
  4. Choose Actions, Delete internet gateway.
  5. When prompted for confirmation, enter delete, and then choose Delete internet gateway.

Create an internet gateway

Egress-only internet gateways

Did this page help you? - Yes

Thanks for letting us know we're doing a good job!

If you've got a moment, please tell us what we did right so we can do more of it.

Did this page help you? - No

Thanks for letting us know this page needs work. We're sorry we let you down.

If you've got a moment, please tell us how we can make the documentation better.