File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -11,13 +11,10 @@ Gets information about IP managed by IPAM service. IPAM service is used for dhcp
11
11
12
12
### Instance Private Network IP
13
13
14
- ``` hcl
15
- # Get info by ipam ip id
16
- data "scaleway_ipam_ip" "by_id" {
17
- ipam_ip_id = "11111111-1111-1111-1111-111111111111"
18
- }
14
+ Get Instance IP in a private network.
19
15
20
- # Get Instance IP in a private network
16
+ ``` terraform
17
+ # Connect your instance to a private network using a private nic.
21
18
resource "scaleway_instance_private_nic" "nic" {
22
19
server_id = scaleway_instance_server.server.id
23
20
private_network_id = scaleway_vpc_private_network.pn.id
@@ -38,6 +35,12 @@ data "scaleway_ipam_ip" "by_id" {
38
35
type = "ipv4"
39
36
}
40
37
38
+
39
+ ```
40
+
41
+ ### RDB instance
42
+
43
+ ``` terraform
41
44
# Find the private IPv4 using resource name
42
45
resource "scaleway_vpc_private_network" "pn" {}
43
46
@@ -61,7 +64,6 @@ data "scaleway_ipam_ip" "by_name" {
61
64
}
62
65
type = "ipv4"
63
66
}
64
-
65
67
```
66
68
67
69
## Argument Reference
You can’t perform that action at this time.
0 commit comments