Add additional backup configurations to MongoDB Flex instance resource (#486)

* Extend resource and datasource

* Extend acc test

* Extend example

* Generate docs

* Fix linter

* Update stackit/internal/services/mongodbflex/instance/datasource.go

Co-authored-by: GokceGK <161626272+GokceGK@users.noreply.github.com>

---------

Co-authored-by: GokceGK <161626272+GokceGK@users.noreply.github.com>
This commit is contained in:
João Palet 2024-07-31 10:55:14 +01:00 committed by GitHub
parent 6140769506
commit 2810545ef7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 556 additions and 56 deletions

View file

@ -55,7 +55,12 @@ Read-Only:
Read-Only:
- `type` (String)
- `daily_snapshot_retention_days` (Number) The number of days that daily backups will be retained.
- `monthly_snapshot_retention_months` (Number) The number of months that monthly backups will be retained.
- `point_in_time_window_hours` (Number) The number of hours back in time the point-in-time recovery feature will be able to recover.
- `snapshot_retention_days` (Number) The number of days that continuous backups (controlled via the `backup_schedule`) will be retained.
- `type` (String) Type of the MongoDB Flex instance.
- `weekly_snapshot_retention_weeks` (Number) The number of weeks that weekly backups will be retained.
<a id="nestedatt--storage"></a>

View file

@ -26,9 +26,10 @@ resource "stackit_mongodbflex_instance" "example" {
class = "class"
size = 10
}
version = "5.0"
version = "7.0"
options = {
type = "Single"
type = "Single"
snapshot_retention_days = 3
}
backup_schedule = "0 0 * * *"
}
@ -73,7 +74,15 @@ Read-Only:
Required:
- `type` (String)
- `type` (String) Type of the MongoDB Flex instance. Supported values are: `Replica`, `Sharded`, `Single`.
Optional:
- `daily_snapshot_retention_days` (Number) The number of days that daily backups will be retained.
- `monthly_snapshot_retention_months` (Number) The number of months that monthly backups will be retained.
- `point_in_time_window_hours` (Number) The number of hours back in time the point-in-time recovery feature will be able to recover.
- `snapshot_retention_days` (Number) The number of days that continuous backups (controlled via the `backup_schedule`) will be retained.
- `weekly_snapshot_retention_weeks` (Number) The number of weeks that weekly backups will be retained.
<a id="nestedatt--storage"></a>