Skip to content

Commit c353777

Browse files
committed
Merge branch 'feat/add-lb-pn-resource' of github.com:yfodil/terraform-provider-scaleway into feat/add-lb-pn-resource
2 parents 00b16a8 + 839ed74 commit c353777

File tree

3 files changed

+30
-0
lines changed

3 files changed

+30
-0
lines changed

.github/workflows/documentation.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,5 +65,6 @@ jobs:
6565
go-version: ${{ env.GO_VERSION }}
6666
- uses: hashicorp/setup-terraform@v3
6767
- run: go tool tfplugindocs validate
68+
- run: rm -fr ./docs
6869
- run: go tool tfplugindocs generate
6970
- run: git diff --exit-code docs

docs/resources/mongodb_instance.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,24 @@ resource "scaleway_mongodb_instance" "main" {
7575
}
7676
```
7777

78+
### With Snapshot Scheduling
79+
80+
```terraform
81+
resource "scaleway_mongodb_instance" "main" {
82+
name = "test-mongodb-with-snapshots"
83+
version = "7.0.12"
84+
node_type = "MGDB-PLAY2-NANO"
85+
node_number = 1
86+
user_name = "my_initial_user"
87+
password = "thiZ_is_v&ry_s3cret"
88+
volume_size_in_gb = 5
89+
90+
# Snapshot scheduling configuration
91+
snapshot_schedule_frequency_hours = 24
92+
snapshot_schedule_retention_days = 7
93+
is_snapshot_schedule_enabled = true
94+
}
95+
```
7896

7997
### Restore From Snapshot
8098

@@ -107,6 +125,12 @@ The following arguments are supported:
107125
- `region` - (Defaults to [provider](../index.md#region) `region`) The [region](../guides/regions_and_zones.md#regions) in which the MongoDB® instance should be created.
108126
- `project_id` - (Defaults to [provider](../index.md#project_id) `project_id`) The ID of the project the MongoDB® instance is associated with.
109127

128+
### Snapshot Scheduling
129+
130+
- `snapshot_schedule_frequency_hours` - (Optional) Snapshot schedule frequency in hours.
131+
- `snapshot_schedule_retention_days` - (Optional) Snapshot schedule retention in days.
132+
- `is_snapshot_schedule_enabled` - (Optional) Enable or disable automatic snapshot scheduling.
133+
110134
~> **Important** If neither private_network nor public_network is specified, a public network endpoint is created by default.
111135

112136

@@ -130,6 +154,9 @@ In addition to all arguments above, the following attributes are exported:
130154
- `id` - The ID of the endpoint.
131155
- `port` - TCP port of the endpoint.
132156
- `dns_records` - List of DNS records for your endpoint.
157+
- `snapshot_schedule_frequency_hours` - Snapshot schedule frequency in hours.
158+
- `snapshot_schedule_retention_days` - Snapshot schedule retention in days.
159+
- `is_snapshot_schedule_enabled` - Whether automatic snapshot scheduling is enabled.
133160
- `tls_certificate` - The PEM-encoded TLS certificate for the MongoDB® instance, if available.
134161

135162
## Import

docs/resources/rdb_instance.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,8 @@ resource "scaleway_rdb_instance" "main" {
128128

129129
-> **Note** If nothing is defined, your Database Instance will have a default public load-balancer endpoint.
130130

131+
-> **Note** Managed PostgreSQL and MySQL Database Instances are compatible with the [VPC routing](https://www.scaleway.com/en/docs/network/vpc/concepts/#routing) feature, which allows you to connect one or more Database Instances in a Private Network to resources in other Private Networks of the same VPC. This feature is automatically enabled when your Database Instance is connected to a Private Network within a VPC that has routing enabled. Refer to the [How to manage routing](https://www.scaleway.com/en/docs/network/vpc/how-to/manage-routing/) documentation page for more information about VPC routing.
132+
131133
## Argument Reference
132134

133135
The following arguments are supported:

0 commit comments

Comments
 (0)