Skip to content

Commit a60e929

Browse files
committed
fixes
1 parent 8c15a69 commit a60e929

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

docs/guides/migration_guide_vpcgw_v2.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ In IPAM mode, these functionalities are managed by Scaleway IPAM.
1010
In 2023, DHCP functionality was moved from Public Gateways to Private Networks, DHCP resources are now no longer needed.
1111

1212
Note:
13-
Trigger the move from Legacy mode to IPAM mide by setting the `migrate_to_v2` flag on your Public Gateway resource.
13+
Trigger the move from Legacy mode to IPAM mode by setting the `move_to_ipam` flag on your Public Gateway resource.
1414
You can do this via the Terraform configuration or by using the Scaleway CLI/Console.
1515

1616
## Prerequisites
@@ -30,7 +30,7 @@ terraform {
3030
}
3131
```
3232

33-
## Migration steps
33+
## Steps to Move to IPAM Mode
3434

3535
### Legacy Configuration
3636

@@ -86,14 +86,14 @@ resource "scaleway_vpc_public_gateway_dhcp_reservation" "main" {
8686

8787
### Triggering the move to IPAM-mode
8888

89-
Before updating your configuration, you must trigger the move to IPAM-mode on the Public Gateway resource. For example, add the `migrate_to_v2` flag:
89+
Before updating your configuration, you must trigger the move to IPAM-mode on the Public Gateway resource. For example, add the `move_to_ipam` flag:
9090

9191
```hcl
9292
resource "scaleway_vpc_public_gateway" "main" {
9393
name = "foobar"
9494
type = "VPC-GW-S"
9595
ip_id = scaleway_vpc_public_gateway_ip.main.id
96-
migrate_to_v2 = true
96+
move_to_ipam = true
9797
}
9898
```
9999

@@ -118,10 +118,10 @@ After triggering the move, update your Terraform configuration as follows:
118118
resource "scaleway_vpc_gateway_network" "main" {
119119
gateway_id = scaleway_vpc_public_gateway.main.id
120120
private_network_id = scaleway_vpc_private_network.main.id
121+
enable_masquerade = true
121122
ipam_config {
122123
push_default_route = false
123124
}
124-
enable_masquerade = true
125125
}
126126
```
127127
@@ -131,7 +131,7 @@ After putting your Public Gateway in IPAM mode, you no longer manage DHCP reserv
131131
Instead, you remove the legacy DHCP reservation resource and switch to using IPAM to manage your IPs.
132132
133133
1. **Retrieve an Existing IP with the IPAM Datasource**
134-
If you have already reserved an IP (for example, via your legacy configuration), even after deleting the DHCP reservation resource the IP is still available. You can reference it using the `scaleway_ipam_ip` datasource. For instance:
134+
If you have already reserved an IP (for example, via your legacy configuration), even after deleting the DHCP reservation resource the IP is still available. You can retrieve it using the `scaleway_ipam_ip` datasource. For instance:
135135
136136
```hcl
137137
data "scaleway_ipam_ip" "existing" {
@@ -147,9 +147,9 @@ Instead, you remove the legacy DHCP reservation resource and switch to using IPA
147147

148148
```hcl
149149
resource "scaleway_ipam_ip" "new_ip" {
150-
address = "172.16.64.7"
150+
address = "192.168.1.1"
151151
source {
152-
private_network_id = scaleway_vpc_private_network.pn01.id
152+
private_network_id = scaleway_vpc_private_network.main.id
153153
}
154154
}
155155
```

0 commit comments

Comments
 (0)