Skip to content

Commit 0efc096

Browse files
committed
docs(ipam_ip): change examples format
1 parent 957ff78 commit 0efc096

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

docs/data-sources/ipam_ip.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,10 @@ Gets information about IP managed by IPAM service. IPAM service is used for dhcp
1111

1212
### Instance Private Network IP
1313

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.
1915

20-
# Get Instance IP in a private network
16+
```terraform
17+
# Connect your instance to a private network using a private nic.
2118
resource "scaleway_instance_private_nic" "nic" {
2219
server_id = scaleway_instance_server.server.id
2320
private_network_id = scaleway_vpc_private_network.pn.id
@@ -38,6 +35,12 @@ data "scaleway_ipam_ip" "by_id" {
3835
type = "ipv4"
3936
}
4037
38+
39+
```
40+
41+
### RDB instance
42+
43+
```terraform
4144
# Find the private IPv4 using resource name
4245
resource "scaleway_vpc_private_network" "pn" {}
4346
@@ -61,7 +64,6 @@ data "scaleway_ipam_ip" "by_name" {
6164
}
6265
type = "ipv4"
6366
}
64-
6567
```
6668

6769
## Argument Reference

0 commit comments

Comments
 (0)