Skip to main content

Detach an internet gateway from a VPC

You can detach an internet gateway from a VPC (Virtual Private Cloud) to remove its connection to the Internet.

This action also deletes the routes using the internet gateway as a target.

Permissions

info

This action requires the following IAM (Identity and Access Management) permissions:

  • compute.internetGateway.update

Prerequisites

info

The VPC must not contain any VM (Virtual Machine) using public IP, nor any load balancer exposed to the Internet.

From the left-hand side menu, click Network → VPC → Internet Gateways.
  1. From the left-hand side menu, click NetworkVPCInternet Gateways.

  2. Identify the internet gateway you want to detach from the VPC, then from the list of actions, click Detach from VPC.

A new Detach the VPC dialog box appears.

  1. Confirm the dissociation by clicking Detach. The internet gateway is dissociated from the VPC.

    A confirmation message "The VPC has been successfully dissociated" appears.

Cette page vous a-t-elle été utile ?