hashicorp / terraform-provider-azurerm

Terraform provider for Azure Resource Manager
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs
Mozilla Public License 2.0
4.46k stars 4.54k forks source link

azurerm_cosmosdb_postgresql_cluster - database name #22618

Open gqvsant opened 11 months ago

gqvsant commented 11 months ago

Is there an existing issue for this?

Community Note

Description

As per this document, when creating a cosmosdb postgresql cluster you have the option to choose the database name.

databasename

Here's the discussion I started regarding the same topic.

But there’s no such parameter on the resource azurerm_cosmosdb_postgresql_cluster, and I couldn’t find it mapped here as well.

Since we’re on IaC, this leaves me with only the option to work with the citus database on clusters created via terraforms while the flexibility of creating a different and more business-oriented name is available only via portal.

New or Affected Resource(s)/Data Source(s)

azurerm_cosmosdb_postgresql_cluster

Potential Terraform Configuration

resource "azurerm_cosmosdb_postgresql_cluster" "example" {
  name                            = "examplecluster"
  database_name                   = "exampledatabase"
  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
}

References

No response

NSimpragaVolur commented 7 months ago

Almost 5 months - no update on this?

bramvdklinkenberg commented 5 months ago

Don't see the option to configure the db name in ARM/Bicep yet, so probably not going to be available in TF for a bit.