Skip to content

Commit 11199ea

Browse files
committed
fix(vpc): update for deletion of default VPC, and lazy-VPC-create
1 parent c5bab01 commit 11199ea

File tree

10 files changed

+26
-50
lines changed

10 files changed

+26
-50
lines changed

pages/elastic-metal/how-to/use-private-networks.mdx

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,8 @@ You can also attach custom resources, such as virtual machines hosted on your El
6363
3. Click the **Private Networks** tab.
6464
4. Click **Attach to a Private Network** and continue to step 5. Otherwise, to detach your server from a Private Network, click the <Icon type="unlink" /> icon next to the Private Network and confirm the action when prompted.
6565
5. Either:
66-
- Select **Attach to an existing Private Network**, and choose a network from the drop-down list to attach your server to. Remember, only Private Networks in the same region as your server will be displayed.
67-
- Select **Attach to a new Private Network**, and enter a name for the new Private Network you wish to create.
68-
<Message type="note">
69-
The Private Network will have default settings, meaning:
70-
- It is created in your [default VPC](/vpc/concepts/#default-vpc) for the region, if you have one. If you do not have an existing VPC for the appropriate region, you must [create one](/vpc/how-to/create-vpc/#how-to-create-a-vpc) first.
71-
- It has an auto-generated [CIDR block](/vpc/concepts/#cidr-block) used to allocate private IP addresses to servers attached to the network. Each attached Elastic Metal server will get an IPv4 and an IPv6 address on the Private Network.
72-
</Message>
66+
- Select a Private Network from the drop-down list to attach your server to. Remember, only Private Networks in the same region as your server will be displayed.
67+
- Alternatively, select **Create a new Private Network** in the list. You are prompted to enter a name and tags for the Private Network, and to select the VPC it should be created in. The Private Network will be created with default configuration, meaning its [CIDR block](/vpc/concepts#cidr-block) will be automatically defined.
7368
6. Choose whether to **auto-allocate an available IP from the pool** (the [CIDR block](/vpc/concepts/#cidr-block) defined at the time of creating the Private Network), or use a [reserved IP address](/ipam/concepts/#reserved-ip-address) for the attachment. You must make this choice for both the IPv4 and IPv6 address that the Elastic Metal server will have on this Private Network.
7469
7. Click **Attach to Private Network** to confirm.
7570

pages/instances/how-to/use-private-networks.mdx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,12 @@ If you want to create a Private Network without immediately attaching any resour
3535
2. Click the Instance you want to add a Private Network to.
3636
3. Click the **Private Networks** tab.
3737
4. Click the **Attach to a Private Network** button. A pop-up displays.
38-
5. Select **Attach to a new Private Network**.
39-
6. Enter a **Name** for your Private Network, or leave the randomly-generated name in place.
40-
7. Click **Attach to a Private Network** to finish.
38+
5. Click the **Select a Private Network** drop-down, then click **Create a new Private Network**.
39+
6. Enter a **Name** for your Private Network, or leave the randomly-generated name in place. Optionally, you can also enter tags.
40+
7. Select the VPC to create the Private Network in.
41+
8. Click **Attach to a Private Network** to finish.
4142

42-
Your Private Network is created in your [default VPC](/vpc/concepts/#default-vpc) for the region, if one exists. If you do not have an existing VPC for the appropriate region, you must [create one](/vpc/how-to/create-vpc/#how-to-create-a-vpc) first. The Private Network will have default settings, meaning an auto-generated [CIDR block](/vpc/concepts/#cidr-block).
43+
The Private Network will have default settings, meaning an auto-generated [CIDR block](/vpc/concepts/#cidr-block).
4344

4445
You are taken back to the Private Networks tab, where your new Private Network is now displayed in the list and you can see the IP address for your Instance on the network. For more information about resources' private IP addresses on a Private Network, see our [dedicated documentation](/vpc/how-to/attach-resources-to-pn/#how-to-view-the-resources-ip-address).
4546

@@ -49,13 +50,12 @@ If you want to create a Private Network without immediately attaching any resour
4950
2. Click the Instance you want to add a Private Network to.
5051
3. Click the **Private Networks** tab.
5152
4. Click the **Attach to a Private Network** button. A pop-up displays.
52-
5. Select **Attach to an existing Private Network**.
53-
6. Select the Private Network you want to attach the Instance to.
53+
5. Select the existing Private Network you want to attach the Instance to from the drop-down list.
5454
<Message type="note">
5555
Only Instances from the same region as your Private Network will be available in the drop-down menu.
5656
</Message>
57-
7. Choose whether to **auto-allocate an available IP from the pool** (the [CIDR block](/vpc/concepts/#cidr-block) defined at the time of creating the Private Network), or use a **[reserved IP address](/ipam/concepts/#reserved-ip-address)** for the attachment. You must make this choice for both the IPv4 and IPv6 address that the Instance will have on this Private Network.
58-
8. Click **Attach to Private Network**.
57+
6. Choose whether to **auto-allocate an available IP from the pool** (the [CIDR block](/vpc/concepts/#cidr-block) defined at the time of creating the Private Network), or use a **[reserved IP address](/ipam/concepts/#reserved-ip-address)** for the attachment. You must make this choice for both the IPv4 and IPv6 address that the Instance will have on this Private Network.
58+
7. Click **Attach to Private Network**.
5959

6060
You are taken back to the **Private Networks** tab, where you can see the private IP address for the Instance you just attached. For more information about resources' private IP addresses on a Private Network, see our [dedicated documentation](/vpc/how-to/attach-resources-to-pn/#how-to-view-the-resources-ip-address).
6161

pages/load-balancer/how-to/use-with-private-network.mdx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,9 @@ The Private Network feature of the managed Load Balancers product lets you attac
3535
2. Click on the Load Balancer that you want to add to a Private Network. The Load Balancer's overview page displays.
3636
3. Click the **Private Networks** tab.
3737
4. Click **Attach to a Private Network**. A pop-up displays.
38-
39-
<Lightbox image={image} alt="" />
40-
41-
5. Select whether to attach to a new Private Network, or an existing one.
38+
5. Either:
39+
- Select a Private Network from the drop-down list to attach your Load Balancer to. Remember, only Private Networks in the same region as your server will be displayed.
40+
- Alternatively, select **Create a new Private Network** in the list. You are prompted to enter a name and tags for the Private Network, and to select the VPC it should be created in. The Private Network will be created with default configuration, meaning its [CIDR block](/vpc/concepts#cidr-block) will be automatically defined.
4241
6. Choose whether to **auto-allocate an available IP from the pool** (the [CIDR block](/vpc/concepts/#cidr-block) defined at the time of creating the Private Network), or use a **[reserved IP address](/ipam/concepts/#reserved-ip-address)** for the attachment.
4342
7. Click **Attach to Private Network** to validate the form. The Private Network is attached to the Load Balancer and displays in the **Private Network** tab.
4443

pages/public-gateways/how-to/configure-a-public-gateway.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ This page shows you how to attach a [Public Gateway](/public-gateways/concepts/#
3636
4. Click **Attach to a Private Network** to attach a new Private Network to the Public Gateway.
3737

3838
5. Choose to attach an existing or a new Private Network.
39-
- If you want to attach an existing Private Network, select **Attach to an existing Private Network** and choose the desired network from the drop-down list.
39+
- If you want to attach an existing Private Network, select the desired network from the drop-down list.
4040
<Message type="note">
4141
Only Private Networks which are in the same region as the Public Gateway are displayed in this list.
4242
</Message>
43-
- If you want to create and attach a new Private Network, select **Attach to a new Private Network**. The Private Network will be created with default configuration (a [CIDR block](/vpc/concepts#cidr-block) will be automatically defined), in your default VPC for the region, if one exists. If you do not have an existing VPC for the appropriate region, you must [create one](/vpc/how-to/create-vpc/#how-to-create-a-vpc) first. A name for the Private Network will be suggested, but feel free to overwrite this with a new name of your choice. Dynamic NAT will be automatically activated on the Public Gateway for the Private Network.
43+
- If you want to create and attach a new Private Network, select **Create a new Private Network**. You are prompted to enter a name and tags for the Private Network, and to select the VPC it should be created in. The Private Network will be created with default configuration, meaning its [CIDR block](/vpc/concepts#cidr-block) will be automatically defined. Dynamic NAT will be automatically activated on the Public Gateway for the Private Network.
4444
6. Choose whether to **auto-allocate an available IP from the pool** (the [CIDR block](/vpc/concepts/#cidr-block) defined at the time of creating the Private Network), or use a **[reserved IP address](/ipam/concepts/#reserved-ip-address)** for the attachment.
4545
7. Use the toggle to select whether to tell the gateway whether or not it should [advertise the default route](/public-gateways/concepts/#default-route) to the internet for attached resources. When activated, other resources on this Private Network will learn the default route through the Public Gateway via DHCP. The route will also be installed in the VPC’s route table, and other Private Networks can [opt in](/vpc/how-to/manage-routing/#how-to-manage-default-route-scope) to receive it.
4646
8. Click **Attach to Private Network** to finish. You are taken back to the Private Networks tab, where the network you attached now appears, along with the services configured and the IP address of the Public Gateway.

pages/vpc/concepts.mdx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ An IPv4 CIDR block and an IPv6 CIDR block are defined for each Scaleway Private
3232
#### Projects created before 13 May 2025
3333
<br/>
3434
- One default VPC was automatically created for each region (Paris, Amsterdam and Warsaw).
35-
- New Private Networks that you create without specifying a VPC are added to the default VPC for their region.
36-
35+
- You can now choose to delete one or all of your default VPCs. If you do, the behavior for newer Project described below will apply.
3736

3837
#### Projects created after 13 May 2025
3938

pages/vpc/faq.mdx

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,13 @@ A VPC offers layer 3 network isolation. Within each VPC, you can create multiple
2020

2121
<Lightbox image={image} alt="A diagram shows that several Private Networks exist within a single VPC" size="small" />
2222

23-
### What is a default VPC and why can I not delete it?
23+
### What is a default VPC?
2424

25-
If you created your Scaleway [Project](/organizations-and-projects/concepts/#project) before 13 May 2025, one **default VPC** was automatically created in it for each region (Paris, Amsterdam and Warsaw). Any new Private Networks that you create will be added to the default VPC for their region, unless you override this by specifying a different VPC.
25+
If you created your Scaleway [Project](/organizations-and-projects/concepts/#project) before 13 May 2025, one **default VPC** was automatically created in it for each region (Paris, Amsterdam and Warsaw). You can now opt to delete these default VPCs, if you wish.
2626

27-
You cannot delete a default VPC, but you can rename it, and/or create other VPCs and use those rather than the default VPCs, if you prefer. Watch this space for upcoming functionality to delete default VPCs.
27+
If you created your Scaleway Project after 13 May 2025, default VPCs are no longer pre-created for the Project.
2828

29-
<Message type="note">
30-
Default VPCs do not prevent you from deleting an otherwise empty Project.
31-
</Message>
32-
33-
If you created your Scaleway Project after 13 May 2025, default VPCs are no longer pre-created for the Project. Find out more in our [dedicated documentation](/vpc/concepts/#default-vpc).
29+
Find out more in our [dedicated documentation](/vpc/concepts/#default-vpc).
3430

3531
## VPC routing
3632

pages/vpc/how-to/create-vpc.mdx

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ VPC allows you to build your own **V**irtual **P**rivate **C**loud on top of Sca
3131

3232
### Before 13 May 2025
3333

34-
If you created your Scaleway [Project](/organizations-and-projects/concepts/#project) before 13 May 2025, one **default VPC** was automatically created in it for each region (Paris, Amsterdam and Warsaw). Any new Private Networks that you create without specifying a VPC will be added to the default VPC for their region.
34+
If you created your Scaleway [Project](/organizations-and-projects/concepts/#project) before 13 May 2025, one **default VPC** was automatically created in it for each region (Paris, Amsterdam and Warsaw).
3535

3636
Click **VPC** in the **Network** section of the Scaleway console side menu. Your VPC [dashboard](https://console.scaleway.com/vpc/vpc) displays:
3737

@@ -43,9 +43,7 @@ You see three default VPCs (each with a **DEFAULT** badge next to it), one for e
4343
- Amsterdam `AMS`
4444
- Warsaw `WAW`
4545

46-
Each of these VPCs is named `default` (though you can [edit](#how-to-edit-a-vpcs-name-and-tags) the name if you wish). Any new Private Networks that you create will be added to the default VPC for their region, unless you override this by specifying a different VPC.
47-
48-
It is currently not possible to change the default VPC for a region, nor to delete a VPC.
46+
Each of these VPCs is named `default`, though you can [edit](#how-to-edit-a-vpcs-name-and-tags) the name if you wish, or delete the default VPCs.
4947

5048
### After 13 May 2025
5149

@@ -88,6 +86,3 @@ If you created your Scaleway Project after 13 May 2025, default VPCs are no long
8886
- Hover your mouse over the VPC's name at the top of the page, and click the <Icon name="edit" /> icon that displays. Edit the name as required, and click <Icon name="validate" /> when you're done.
8987
- Click into the box marked **Tags** and start typing. Hit the spacebar to create the tag. Click the **X** next to any tag to delete it.
9088

91-
It is currently not possible to change the default VPC for a region.
92-
93-

pages/vpc/how-to/delete-vpc.mdx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,7 @@ import image from './assets/scaleway-default-vpc.webp'
2323

2424
## How to delete a VPC
2525

26-
You can only delete VPCs that:
27-
- Do not contain any Private Networks or IPAM reserved IPs
28-
- Are not the [default VPC](/vpc/concepts/#default-vpc) for their region
26+
You can only delete VPCs that do not contain any Private Networks or IPAM reserved IPs.
2927

3028
1. Click **VPC** in the **Network** section of the Scaleway console side menu. The list of your VPCs displays:
3129

pages/vpc/quickstart.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Discover the VPC interface on the Scaleway console.
5656
## How to create a VPC
5757

5858
<Message type="tip">
59-
If you created your Scaleway [Project](/organizations-and-projects/concepts/#project) before 13 May 2025, one **default VPC** was automatically created in it for each region (Paris, Amsterdam and Warsaw). [Find out more](/vpc/faq/#what-is-a-default-vpc-and-why-can-i-not-delete-it).
59+
If you created your Scaleway [Project](/organizations-and-projects/concepts/#project) before 13 May 2025, one **default VPC** was automatically created in it for each region (Paris, Amsterdam and Warsaw). [Find out more](/vpc/faq/#what-is-a-default-vpc).
6060
</Message>
6161

6262
1. Click **VPC** in the **Network** section of the Scaleway console side menu.

pages/vpc/troubleshooting/cant-delete-vpc-pn.mdx

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -54,20 +54,14 @@ The VPC must contain no Private Networks before you can delete it.
5454

5555
In order to successfully delete a Private Network, you must ensure no resources are attached to it, and there are no private IPs reserved within the network. See the [information below](#i-cant-delete-my-private-network) for full details.
5656

57-
**Ensure you are not trying to delete a default VPC**. Each Scaleway Project created before 13 May 2025 has three auto-created default VPCs, one for each region. These VPCs cannot be deleted. They are free of charge. The existence of default VPCs does not block the deletion of a Scaleway account or Project, as long as the default VPCs do not contain Private Networks with associated/attached resources.
58-
59-
You can identify default VPCs by the **Default** badge in the VPC listing, even if you have changed the name of the VPC itself.
60-
61-
<Lightbox image={image2} alt="A screenshot of the Scaleway console highlights the DEFAULT badges next to certain VPCs on the VPC listing" />
62-
6357
## I can't delete my Private Network
6458

6559
### PN deletion problems
6660

67-
You may be attempting to delete a Private Network VPC via the [Scaleway console](/vpc/how-to/delete-private-network/), [API](https://www.scaleway.com/en/developers/api/vpc/#path-private-networks-delete-a-private-network) or other developer tool, and see one of the following error messages:
61+
You may be attempting to delete a Private Network via the [Scaleway console](/vpc/how-to/delete-private-network/), [API](https://www.scaleway.com/en/developers/api/vpc/#path-private-networks-delete-a-private-network) or other developer tool, and see one of the following error messages:
6862

6963
- `resource_still_in_use`
70-
- `Detach resources from this Private to delete it`
64+
- `Detach resources from this Private Network to delete it`
7165
- `Private Network must be empty to be deleted`
7266
- `precondition failed: resource_still_in_use`
7367

0 commit comments

Comments
 (0)