You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
VPC allows you to build your own **V**irtual **P**rivate **C**loud on top of Scaleway's shared public cloud. One default VPC per region is automatically created per Scaleway [Project](/organizations-and-projects/concepts/#project), and you can create more if you wish. Within each VPC, you can create **Private Networks** and attach Scaleway resources (Instances, Elastic Metal servers, Load Balancers etc.) to them, as long as the resources are within the network's region.
16
+
VPC allows you to build your own **V**irtual **P**rivate **C**loud on top of Scaleway's shared public cloud.
17
17
18
-
<Lightboxsrc="scaleway-vpc-pn-diag.webp"alt="A diagram shows that several Private Networks exist within a single VPC"size="small"/>
18
+
One **default VPC** per region is automatically created per Scaleway [Project](/organizations-and-projects/concepts/#project), and you can create more VPCs if you wish.
19
19
20
-
Attached resources can then communicate between themselves in an isolated and secure virtual layer 2 network, away from the public internet. More features and resources will be coming to the VPC product in the future.
20
+
Within each VPC, you can create **Private Networks** and attach Scaleway resources (Instances, Elastic Metal servers, Load Balancers etc.) to them, as long as the resources are within the network's region. Resources attached to a Private Network can communicate between themselves in an isolated and secure virtual layer 2 network, away from the public internet.
21
+
22
+
**VPC routing** facilitates the automatic routing of traffic between the Private Networks of a VPC, as well as the ability to define custom routes between resources. Finely control and limit routing between resources in a VPC via the Network Access Control List (currently available only via the VPC API).
23
+
24
+
Attach a **Public Gateway** to your VPC to give your resources controlled access to the public internet via the Private Network.
25
+
26
+
<Lightboxsrc="scaleway-vpc-basics.webp"alt="Three diagrams show 1. Many VPCs existing within a Scaleway Project, 2. Many Private Networks existing within a VPC and 3. A Public Gateway attached to a Private Network giving Internet access."size="large"/>
27
+
28
+
This quickstart walks you through the process of getting started with Scaleway VPC.
29
+
30
+
<Messagetype="tip">
31
+
If you are looking for detailed guidance on constructing your private infrastructure according to best practices, see our [basic VPC use case](/vpc/reference-content/use-case-basic/) and [Getting the most from Private Networks](/vpc/reference-content/getting-most-private-networks/) documentation.
32
+
</Message>
21
33
22
34
<Macroid="requirements" />
23
35
@@ -37,13 +49,35 @@ You see three default VPCs, one for each of the following regions:
37
49
- Amsterdam `AMS`
38
50
- Warsaw `WAW`
39
51
40
-
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.
52
+
Any new Private Networks that you create will be added to the default VPC for their region, unless you override this by [creating](#how-to-create-a-vpc) and specifying a different VPC.
53
+
54
+
## How to create a VPC
55
+
56
+
If you want to create more VPCs beyond the default ones created for you, you can do so via the following steps:
57
+
58
+
1. Click **VPC** in the **Network** section of the Scaleway console side menu.
59
+
60
+
2. Click <Iconname="plus" /> **Create a VPC**. The VPC creation wizard displays.
61
+
62
+
<Lightboxsrc="scaleway-create-vpc.webp"alt="" />
63
+
64
+
3. Choose a **region** in which to create your VPC.
65
+
66
+
4. Enter a **name** for your VPC (or use the wand icon to generate a random name). Optionally, you can also add **tags** to help organize your VPCs. Each tag should be separated by a space.
67
+
68
+
<Macroid="network-resource-naming"/>
69
+
70
+
You can create Private Networks in this VPC after you have created the VPC itself. However, you can not move an existing Private Network from one VPC to another.
71
+
72
+
5. Click **Create VPC** to finish.
73
+
74
+
Your VPC is created, and you are redirected to its **Overview** page.
41
75
42
76
## How to create a Private Network
43
77
44
-
1. Click **VPC** in the **Network** section of the side menu. The list of your VPCs displays:
78
+
You can create multiple Private Networks within each VPC. Resources attached to each Private Network will be able to communicate between themselves via their private IP addresses or private hostnames, away from the public internet.
45
79
46
-
Each Private Network must be created within a VPC.
80
+
1. Click **VPC** in the **Network** section of the side menu. The list of your VPCs displays.
47
81
48
82
2. Click the VPC you wish to create your Private Network in.
49
83
@@ -61,11 +95,11 @@ Any new Private Networks that you create will be added to the default VPC for th
61
95
62
96
5. Click **Create Private Network** to finish. Your Private Network is created.
63
97
64
-
1. Click **VPC** in the **Network** section of the side menu. Your VPC [dashboard](https://console.scaleway.com/vpc/vpc) displays:
98
+
## How to attach resources to a Private Network
65
99
66
-
2. Click the VPC containing the Private Network to which you want to attach a resource.
100
+
1. Click **VPC** in the **Network** section of the side menu. Your VPC [dashboard](https://console.scaleway.com/vpc/vpc) displays.
67
101
68
-
A list of Private Networks in this VPC displays:
102
+
2. Click the VPC containing the Private Network to which you want to attach a resource. A list of Private Networks in this VPC displays.
69
103
70
104
3. Click the Private Network to which you want to attach a resource.
71
105
@@ -119,9 +153,25 @@ Any new Private Networks that you create will be added to the default VPC for th
119
153
120
154
You are returned to the list of attached resources, where the newly-attached resource now displays.
121
155
122
-
<Messagetype="tip">
123
-
**Viewing the resource's private IP**: When you attach a resource to a Private Network, it gets a private IPv4 address on that network (and also an IPv6 address, if supported by the resource). Private IPs are assigned from the CIDR block defined at the time of the Private Network's creation, either via auto-assignment or specification of a particular [reserved IP](/ipam/how-to/reserve-ip/). You can view a resource's IPv4 or v6 address in the **Attached Resources** tab of the Private Network itself (follow steps 1 - 5 above). It can also be viewed via the **Private Networks** tab of the resource's own dashboard.
124
-
</Message>
156
+
## How to address resources on a Private Network
157
+
158
+
Resources on a Private Network can be addressed via their **private IP address** or their **hostname**.
159
+
160
+
### Private IP address
161
+
162
+
When you attach a resource to a Private Network, it gets a private IPv4 address on that network (and also an IPv6 address, if supported by the resource).
163
+
164
+
Private IPs are assigned from the CIDR block defined at the time of the Private Network's creation, either via auto-assignment or specification of a particular [reserved IP](/ipam/how-to/reserve-ip/).
165
+
166
+
You can view a resource's IPv4 or v6 address in the **Attached Resources** tab of the Private Network itself (follow steps 1 - 5 above). It can also be viewed via the **Private Networks** tab of the resource's own dashboard.
167
+
168
+
### Hostname
169
+
170
+
In addition to using its private IP address, you can also access a resource on a Private Network via its hostname, thanks to VPC’s inbuilt private DNS.
171
+
172
+
A resource’s hostname is equivalent to the name you gave the resource when creating it. For example, if you have an Instance with the name `instance123` attached to a Private Network named `prodpn`, its address on that network is `instance123.prodpn.internal`. The `.internal` is important to allow Scaleway DNS to distinguish public and private hostnames.
173
+
174
+
For full information on Scaleway internal DNS and hostname formats, including troubleshooting advice, see our [dedicated DNS documentation](/vpc/reference-content/dns/).
125
175
126
176
## How to manage routing
127
177
@@ -143,11 +193,15 @@ When your route table starts to populate, it will look something like this:
143
193
144
194
<Lightboxsrc="scaleway-route-table.webp"alt="" />
145
195
146
-
For help with understanding the route table and how to read it, refer to our documentation about route tables.
196
+
<Messagetype="tip">
197
+
For help with understanding the route table, refer to our full [routing documentation](/vpc/reference-content/understanding-routing/). For guidance on creating custom routes, see the [routing how-to](/vpc/how-to/manage-routing/#how-to-create-a-custom-route).
198
+
</Message>
199
+
200
+
You can use the VPC's **N**etwork **A**ccess **C**ontrol **L**ist to limit and restrict certain routes within a VPC, but this feature is currently available via the [VPC API only](/vpc/reference-content/understanding-nacls/) only.
147
201
148
202
## How to delete a Private Network
149
203
150
-
You must [detach](/vpc/how-to/attach-resources-to-pn/#how-to-detach-a-resource-from-a-private-network) all resources from the Private Network before you can delete it.
204
+
You must [detach](/vpc/how-to/attach-resources-to-pn/#how-to-detach-a-resource-from-a-private-network) all resources and release all reserved IPs from the Private Network before you can delete it.
151
205
152
206
1. Click **VPC** in the **Network** section of the side menu.
153
207
@@ -169,4 +223,8 @@ You must [detach](/vpc/how-to/attach-resources-to-pn/#how-to-detach-a-resource-f
169
223
170
224
4. Type **DELETE** and click **Delete Private Network**.
171
225
172
-
Your Private Network is deleted.
226
+
Your Private Network is deleted.
227
+
228
+
<Messagetype="tip">
229
+
If you encounter errors when attempting to delete a Private Network, see our [troubleshooting guide](/vpc/troubleshooting/cant-delete-vpc-pn/).
0 commit comments