Sets a Coordinator Configuration value on Azure Cosmos DB for PostgreSQL Cluster.
resource "azurerm_resource_group" "test" {
name = "example-resources"
location = "West Europe"
}
resource "azurerm_cosmosdb_postgresql_cluster" "example" {
name = "examplecluster"
resource_group_name = azurerm_resource_group.example.name
location = azurerm_resource_group.example.location
administrator_login_password = "H@Sh1CoR3!"
coordinator_storage_quota_in_mb = 131072
coordinator_vcore_count = 2
node_count = 2
node_storage_quota_in_mb = 131072
node_vcores = 2
}
resource "azurerm_cosmosdb_postgresql_coordinator_configuration" "example" {
name = "array_nulls"
cluster_id = azurerm_cosmosdb_postgresql_cluster.example.id
value = "on"
}
The following arguments are supported:
name
- (Required) The name of the Coordinator Configuration on Azure Cosmos DB for PostgreSQL Cluster. Changing this forces a new resource to be created.
cluster_id
- (Required) The resource ID of the Azure Cosmos DB for PostgreSQL Cluster where we want to change configuration. Changing this forces a new resource to be created.
value
- (Required) The value of the Coordinator Configuration on Azure Cosmos DB for PostgreSQL Cluster.
The following attributes are exported:
id
- The ID of the Coordinator Configuration on Azure Cosmos DB for PostgreSQL Cluster.The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 30 minutes) Used when creating the Coordinator Configuration on Azure Cosmos DB for PostgreSQL Cluster.update
- (Defaults to 30 minutes) Used when updating the Coordinator Configuration on Azure Cosmos DB for PostgreSQL Cluster.read
- (Defaults to 5 minutes) Used when retrieving the Coordinator Configuration on Azure Cosmos DB for PostgreSQL Cluster.delete
- (Defaults to 30 minutes) Used when deleting the Coordinator Configuration on Azure Cosmos DB for PostgreSQL Cluster.Coordinator Configurations on Azure Cosmos DB for PostgreSQL Clusters can be imported using the resource id
, e.g.
terraform import azurerm_cosmosdb_postgresql_coordinator_configuration.example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/cluster1/coordinatorConfigurations/array_nulls