Skip to content

Commit 066cdb1

Browse files
committed
docs: fix MongoDB documentation templates
1 parent 1a2c3dd commit 066cdb1

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

templates/data-sources/mongodb_instance.md.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ output "mongodb_version" {
3939

4040
- `project_id` - (Optional) The ID of the project the MongoDB® instance is in. Can be used to filter instances when using `name`.
4141

42-
- `region` - (Defaults to [provider](../index.md#region) `region`) The [region](../guides/regions_and_zones.md#zones) in which the MongoDB® Instance exists.
42+
- `region` - (Defaults to [provider](../index.md#region) `region`) The [region](../guides/regions_and_zones.md#regions) in which the MongoDB® Instance exists.
4343

4444
- `organization_id` - (Defaults to [provider](../index.md#organization_id) `organization_id`) The ID of the organization the MongoDB® instance is in.
4545

@@ -64,5 +64,5 @@ In addition to all above arguments, the following attributes are exported:
6464
MongoDB® instance can be imported using the `id`, e.g.
6565

6666
```bash
67-
terraform import scaleway_mongodb_instance.main fr-par-1/11111111-1111-1111-1111-111111111111
67+
terraform import scaleway_mongodb_instance.main fr-par/11111111-1111-1111-1111-111111111111
6868
```

templates/resources/mongodb_instance.md.tmpl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,9 @@ The following arguments are supported:
104104
- `private_network` - (Optional) Private Network endpoints of the Database Instance.
105105
- `pn_id` - (Required) The ID of the Private Network.
106106
- `public_network` - (Optional) Public network endpoint configuration (no arguments).
107+
- `region` - (Defaults to [provider](../index.md#region) `region`) The [region](../guides/regions_and_zones.md#regions) in which the MongoDB® instance should be created.
108+
- `project_id` - (Defaults to [provider](../index.md#project_id) `project_id`) The ID of the project the MongoDB® instance is associated with.
109+
107110
~> **Important** If neither private_network nor public_network is specified, a public network endpoint is created by default.
108111

109112

@@ -114,6 +117,7 @@ In addition to all arguments above, the following attributes are exported:
114117
- `id` - The ID of the MongoDB® instance.
115118
- `created_at` - The date and time of the creation of the MongoDB® instance.
116119
- `updated_at` - The date and time of the last update of the MongoDB® instance.
120+
- `region` - The region of the MongoDB® instance.
117121
- `private_network` - Private Network endpoints of the Database Instance.
118122
- `id` - The ID of the endpoint.
119123
- `ips` - List of IP addresses for your endpoint.
@@ -133,5 +137,5 @@ In addition to all arguments above, the following attributes are exported:
133137
MongoDB® instance can be imported using the `id`, e.g.
134138

135139
```bash
136-
terraform import scaleway_mongodb_instance.main fr-par-1/11111111-1111-1111-1111-111111111111
140+
terraform import scaleway_mongodb_instance.main fr-par/11111111-1111-1111-1111-111111111111
137141
```

templates/resources/mongodb_snapshot.md.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ The following arguments are supported:
3333

3434
~> **Important:** Once set, `expires_at` cannot be removed.
3535

36-
- `region` - (Defaults to [provider](../index.md) `region`) The [region](../guides/regions_and_zones.md#regions) in which the MongoDB® snapshot should be created.
36+
- `region` - (Defaults to [provider](../index.md#region) `region`) The [region](../guides/regions_and_zones.md#regions) in which the MongoDB® snapshot should be created.
3737

3838
## Attributes Reference
3939

@@ -58,5 +58,5 @@ In addition to all arguments above, the following attributes are exported:
5858
MongoDB® snapshots can be imported using the `{region}/{id}`, e.g.
5959

6060
```bash
61-
terraform import scaleway_mongodb_snapshot.main fr-par-1/11111111-1111-1111-1111-111111111111
61+
terraform import scaleway_mongodb_snapshot.main fr-par/11111111-1111-1111-1111-111111111111
6262
```

0 commit comments

Comments
 (0)