Skip to content

Commit a069e8d

Browse files
authored
Compliance_Backup_Policy_updates (#1149)
* CBP_example_doc_fix * Update backup_compliance_policy.html.markdown * Update backup_compliance_policy.html.markdown
1 parent 140d33f commit a069e8d

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

website/docs/r/backup_compliance_policy.html.markdown

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ resource "mongodbatlas_cluster" "my_cluster" {
2929
provider_name = "AWS"
3030
provider_region_name = "EU_CENTRAL_1"
3131
provider_instance_size_name = "M10"
32-
provider_backup_enabled = true // enable cloud backup snapshots
32+
cloud_backup = true // enable cloud backup snapshots
3333
}
3434
3535
resource "mongodbatlas_cloud_backup_schedule" "test" {
@@ -44,23 +44,23 @@ resource "mongodbatlas_cloud_backup_schedule" "test" {
4444
policy_item_hourly {
4545
frequency_interval = 1 #accepted values = 1, 2, 4, 6, 8, 12 -> every n hours
4646
retention_unit = "days"
47-
retention_value = 1
47+
retention_value = 7
4848
}
4949
policy_item_daily {
5050
frequency_interval = 1 #accepted values = 1 -> every 1 day
5151
retention_unit = "days"
52-
retention_value = 2
52+
retention_value = 7
5353
}
5454
policy_item_weekly {
55-
frequency_interval = 4 # accepted values = 1 to 7 -> every 1=Monday,2=Tuesday,3=Wednesday,4=Thursday,5=Friday,6=Saturday,7=Sunday day of the week
55+
frequency_interval = 1 # accepted values = 1 to 7 -> every 1=Monday,2=Tuesday,3=Wednesday,4=Thursday,5=Friday,6=Saturday,7=Sunday day of the week
5656
retention_unit = "weeks"
57-
retention_value = 3
57+
retention_value = 4
5858
}
5959
policy_item_monthly {
60-
frequency_interval = 5 # accepted values = 1 to 28 -> 1 to 28 every nth day of the month
60+
frequency_interval = 1 # accepted values = 1 to 28 -> 1 to 28 every nth day of the month
6161
# accepted values = 40 -> every last day of the month
6262
retention_unit = "months"
63-
retention_value = 4
63+
retention_value = 12
6464
}
6565
6666
}
@@ -71,7 +71,7 @@ data "mongodbatlas_cloud_backup_schedule" "test" {
7171
}
7272
7373
data "mongodbatlas_backup_compliance_policy" "backup_policy" {
74-
project_id = mongodbatlas_cloud_backup_schedule.test.id
74+
project_id = mongodbatlas_cloud_backup_schedule.test.project_id
7575
}
7676
7777
resource "mongodbatlas_backup_compliance_policy" "backup_policy" {
@@ -84,31 +84,31 @@ resource "mongodbatlas_backup_compliance_policy" "backup_policy" {
8484
restore_window_days = 7
8585
8686
on_demand_policy_item {
87-
frequency_interval = 0
87+
frequency_interval = 1
8888
retention_unit = "days"
8989
retention_value = 3
9090
}
9191
9292
policy_item_hourly {
93-
frequency_interval = 6
93+
frequency_interval = 1
9494
retention_unit = "days"
9595
retention_value = 7
9696
}
9797
9898
policy_item_daily {
99-
frequency_interval = 0
99+
frequency_interval = 1
100100
retention_unit = "days"
101101
retention_value = 7
102102
}
103103
104104
policy_item_weekly {
105-
frequency_interval = 0
105+
frequency_interval = 1
106106
retention_unit = "weeks"
107107
retention_value = 4
108108
}
109109
110110
policy_item_monthly {
111-
frequency_interval = 0
111+
frequency_interval = 1
112112
retention_unit = "months"
113113
retention_value = 12
114114
}

0 commit comments

Comments
 (0)