feat(mongodb): set point_in_time_window_hours as required (#860)

* feat(mongodb): set point_in_time_window_hours as required

* docs update
This commit is contained in:
Marcel Jacek 2025-05-23 14:06:13 +02:00 committed by GitHub
parent 9b1c658575
commit a47fac0ae7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 16 additions and 9 deletions

View file

@ -19,7 +19,7 @@ resource "stackit_mongodbflex_instance" "example" {
acl = ["XXX.XXX.XXX.X/XX", "XX.XXX.XX.X/XX"]
flavor = {
cpu = 1
ram = 8
ram = 4
}
replicas = 1
storage = {
@ -28,8 +28,9 @@ resource "stackit_mongodbflex_instance" "example" {
}
version = "7.0"
options = {
type = "Single"
snapshot_retention_days = 3
type = "Single"
snapshot_retention_days = 3
point_in_time_window_hours = 30
}
backup_schedule = "0 0 * * *"
}
@ -74,13 +75,13 @@ Read-Only:
Required:
- `point_in_time_window_hours` (Number) The number of hours back in time the point-in-time recovery feature will be able to recover.
- `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.