Data Source: azurerm_cosmosdb_account

Use this data source to access information about an existing CosmosDB (formally DocumentDB) Account.

Example Usage

data "azurerm_cosmosdb_account" "example" {
  name                = "tfex-cosmosdb-account"
  resource_group_name = "tfex-cosmosdb-account-rg"
}

output "cosmosdb_account_endpoint" {
  value = data.azurerm_cosmosdb_account.example.endpoint
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported:

consistency_policy The current consistency Settings for this CosmosDB account with the following properties:

geo_location The geographic locations data is replicated to with the following properties:

virtual_network_rule The virtual network subnets allowed to access this Cosmos DB account with the following properties:

Timeouts

The timeouts block allows you to specify timeouts for certain actions: