When you configure Cosmos DB there is an option to set "Backup storage redundancy" having three values
Geo-redundant backup storage
Zone-redundant backup storage
Locally-redundant backup storage
The terraform resource for Cosmos DB under the backup block just supports the following
A backup block supports the following:
type - (Required) The type of the backup. Possible values are Continuous and Periodic. Defaults to Periodic.
interval_in_minutes - (Optional) The interval in minutes between two backups. This is configurable only when type is Periodic. Possible values are between 60 and 1440.
retention_in_hours - (Optional) The time in hours that each backup is retained. This is configurable only when type is Periodic. Possible values are between 8 and 720.
There is no option to leverage Zone-redundancy and it defaults to Geo-redundancy by default.
This would result in data sovereignty issues. There needs to be a 4th option under the backup block to let us choose "zone_redundancy"
Community Note
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment
Terraform (and AzureRM Provider) Version
Affected Resource(s)
azurerm_XXXXX
Terraform Configuration Files
# Copy-paste your Terraform configurations here - for large Terraform configs,
# please use a service like Dropbox and share a link to the ZIP file. For
# security, you can also encrypt the files using our GPG public key: https://keybase.io/hashicorp
backup {
type = "Periodic"
interval_in_minutes = var.backup_interval
retention_in_hours = var.backup_retention
}
Debug Output
Panic Output
None
Expected Behaviour
If a redundancy option was available the option could have been set.
Actual Behaviour
backup storage redundancy is currently set to Geo-redundancy by default and cannot be modified by terraform
When you configure Cosmos DB there is an option to set "Backup storage redundancy" having three values
The terraform resource for Cosmos DB under the backup block just supports the following
A backup block supports the following:
There is no option to leverage Zone-redundancy and it defaults to Geo-redundancy by default.
This would result in data sovereignty issues. There needs to be a 4th option under the backup block to let us choose "zone_redundancy"
Community Note
Terraform (and AzureRM Provider) Version
Affected Resource(s)
azurerm_XXXXX
Terraform Configuration Files
Debug Output
Panic Output
None
Expected Behaviour
If a redundancy option was available the option could have been set.
Actual Behaviour
backup storage redundancy is currently set to Geo-redundancy by default and cannot be modified by terraform
Steps to Reproduce
terraform apply
Important Factoids
References
0000