@@ -25,6 +25,30 @@ resource "scaleway_mongodb_instance" "main" {
2525}
2626```
2727
28+ ### Private Network
29+
30+ ``` terraform
31+ resource scaleway_vpc_private_network pn01 {
32+ name = "my_private_network"
33+ region = "fr-par"
34+ }
35+
36+ resource "scaleway_mongodb_instance" "main" {
37+ name = "test-mongodb-basic1"
38+ version = "7.0.12"
39+ node_type = "MGDB-PLAY2-NANO"
40+ node_number = 1
41+ user_name = "my_initial_user"
42+ password = "thiZ_is_v&ry_s3cret"
43+ volume_size_in_gb = 5
44+
45+ private_network {
46+ pn_id = "${scaleway_vpc_private_network.pn02.id}"
47+ }
48+
49+ }
50+ ```
51+
2852
2953### Restore From Snapshot
3054
@@ -51,6 +75,8 @@ The following arguments are supported:
5175- ` volume_type ` - (Optional) Volume type of the instance.
5276- ` volume_size_in_gb ` - (Optional) Volume size in GB.
5377- ` snapshot_id ` - (Optional) Snapshot ID to restore the MongoDB® instance from.
78+ - ` private_network ` - (Optional) Private Network endpoints of the Database Instance.
79+ - ` pn_id ` - (Required) The ID of the Private Network.-
5480- ` public_network ` - (Optional) Public network specs details.
5581
5682## Attributes Reference
@@ -60,6 +86,11 @@ In addition to all arguments above, the following attributes are exported:
6086- ` id ` - The ID of the MongoDB® instance.
6187- ` created_at ` - The date and time of the creation of the MongoDB® instance.
6288- ` updated_at ` - The date and time of the last update of the MongoDB® instance.
89+ - ` private_network ` - Private Network endpoints of the Database Instance.
90+ - ` id ` - The ID of the endpoint.
91+ - ` ips ` - List of IP addresses for your endpoint.
92+ - ` port ` - TCP port of the endpoint.
93+ - ` dns_records ` - List of DNS records for your endpoint.
6394
6495## Import
6596
0 commit comments