From aca64b016e9d652943ed727b4deb9314dc3d5fc7 Mon Sep 17 00:00:00 2001 From: kt Date: Fri, 25 Mar 2022 08:46:33 -0700 Subject: [PATCH] azurerm_cosmosdb_account - update docs and example to remove prefix (#16067) --- examples/cosmos-db/basic/main.tf | 1 - examples/cosmos-db/customer-managed-key/main.tf | 1 - examples/cosmos-db/failover/main.tf | 1 - examples/private-endpoint/cosmos-db/main.tf | 1 - website/docs/d/cosmosdb_account.html.markdown | 1 - website/docs/r/cosmosdb_account.html.markdown | 3 --- 6 files changed, 8 deletions(-) diff --git a/examples/cosmos-db/basic/main.tf b/examples/cosmos-db/basic/main.tf index 405511ad197c..005d2aeeadf5 100644 --- a/examples/cosmos-db/basic/main.tf +++ b/examples/cosmos-db/basic/main.tf @@ -21,7 +21,6 @@ resource "azurerm_cosmosdb_account" "example" { } geo_location { - prefix = "${var.prefix}-customid" location = azurerm_resource_group.example.location failover_priority = 0 } diff --git a/examples/cosmos-db/customer-managed-key/main.tf b/examples/cosmos-db/customer-managed-key/main.tf index a9cb4548fc1f..2e07d8330df6 100644 --- a/examples/cosmos-db/customer-managed-key/main.tf +++ b/examples/cosmos-db/customer-managed-key/main.tf @@ -75,7 +75,6 @@ resource "azurerm_cosmosdb_account" "example" { } geo_location { - prefix = "${var.prefix}-customid" location = azurerm_resource_group.example.location failover_priority = 0 } diff --git a/examples/cosmos-db/failover/main.tf b/examples/cosmos-db/failover/main.tf index 57d22d4a51bd..06e49a5873ef 100644 --- a/examples/cosmos-db/failover/main.tf +++ b/examples/cosmos-db/failover/main.tf @@ -27,7 +27,6 @@ resource "azurerm_cosmosdb_account" "example" { } geo_location { - prefix = "${var.prefix}-customid" location = azurerm_resource_group.example.location failover_priority = 2 } diff --git a/examples/private-endpoint/cosmos-db/main.tf b/examples/private-endpoint/cosmos-db/main.tf index 970be27e95bb..8f00c717dab6 100644 --- a/examples/private-endpoint/cosmos-db/main.tf +++ b/examples/private-endpoint/cosmos-db/main.tf @@ -49,7 +49,6 @@ resource "azurerm_cosmosdb_account" "example" { } geo_location { - prefix = "${var.prefix}-cosmos-db-customid" location = azurerm_resource_group.example.location failover_priority = 0 } diff --git a/website/docs/d/cosmosdb_account.html.markdown b/website/docs/d/cosmosdb_account.html.markdown index d80f6344d101..de7090f98293 100644 --- a/website/docs/d/cosmosdb_account.html.markdown +++ b/website/docs/d/cosmosdb_account.html.markdown @@ -69,7 +69,6 @@ The following attributes are exported: * `max_interval_in_seconds` - The amount of staleness (in seconds) tolerated when the consistency level is Bounded Staleness. * `max_staleness_prefix` - The number of stale requests tolerated when the consistency level is Bounded Staleness. - `geo_location` The geographic locations data is replicated to with the following properties: * `id` - The ID of the location. diff --git a/website/docs/r/cosmosdb_account.html.markdown b/website/docs/r/cosmosdb_account.html.markdown index 090b9a58b4f2..8577f1c1c4c5 100644 --- a/website/docs/r/cosmosdb_account.html.markdown +++ b/website/docs/r/cosmosdb_account.html.markdown @@ -158,7 +158,6 @@ The following arguments are supported: `geo_location` Configures the geographic locations the data is replicated to and supports the following: -* `prefix` - (Optional) The string used to generate the document endpoints for this region. If not specified it defaults to `${cosmosdb_account.name}-${location}`. Changing this causes the location to be deleted and re-provisioned and cannot be changed for the location with failover priority `0`. * `location` - (Required) The name of the Azure region to host replicated data. * `failover_priority` - (Required) The failover priority of the region. A failover priority of `0` indicates a write region. The maximum value for a failover priority = (total number of regions - 1). Failover priority values must be unique for each of the regions in which the database account exists. Changing this causes the location to be re-provisioned and cannot be changed for the location with failover priority `0`. * `zone_redundant` - (Optional) Should zone redundancy be enabled for this region? Defaults to `false`. @@ -171,8 +170,6 @@ The following arguments are supported: **NOTE:** Setting `MongoDBv3.4` also requires setting `EnableMongo`. -**NOTE:** The `prefix` and `failover_priority` fields of a location cannot be changed for the location with a failover priority of `0`. - --- `virtual_network_rule` Configures the virtual network subnets allowed to access this Cosmos DB account and supports the following: