According to the MongoDB Atlas docs, it should be possible to have more than one weekly or monthly cloud backup policy, but this is not possible with the mongodbatlas_cloud_backup_schedule resource. It is possible in the MongoDB Atlas console.
Terraform CLI and Terraform MongoDB Atlas Provider Version
Terraform v1.0.9
on darwin_amd64
+ provider registry.terraform.io/mongodb/mongodbatlas v1.3.1
╷
│ Error: Too many policy_item_weekly blocks
│
│ on main.tf line 269, in resource "mongodbatlas_cloud_backup_schedule" "backup":
│ 269: policy_item_weekly {
│
│ No more than 1 "policy_item_weekly" blocks are allowed
╵
The same occurs for multiple policy_item_monthly blocks.
According to the MongoDB Atlas docs, it should be possible to have more than one weekly or monthly cloud backup policy, but this is not possible with the
mongodbatlas_cloud_backup_schedule
resource. It is possible in the MongoDB Atlas console.Terraform CLI and Terraform MongoDB Atlas Provider Version
Terraform Configuration File
Steps to Reproduce
terraform init
terraform plan
Expected Behavior
Successul plan
Actual Behavior
The same occurs for multiple
policy_item_monthly
blocks.