Name | Version |
---|---|
terraform | >= 1.6.3 |
azurerm | 4.31.0 |
Name | Version |
---|---|
azurerm | 4.31.0 |
No modules.
Name | Type |
---|---|
azurerm_cosmosdb_account.main | resource |
azurerm_client_config.current | data source |
azurerm_resource_group.rg | data source |
Name | Description | Type | Default | Required |
---|---|---|---|---|
cosmosdb_account_capabilities_name | The capabilities which should be enabled for this Cosmos DB account. The capability to enable - Possible values are AllowSelfServeUpgradeToMongo36, DisableRateLimitingResponses, EnableAggregationPipeline, EnableCassandra, EnableGremlin, EnableMongo, EnableMongo16MBDocumentSupport, EnableMongoRetryableWrites, EnableMongoRoleBasedAccessControl, EnableServerless, EnableTable, EnableUniqueCompoundNestedDocs, MongoDBv3.4 and mongoEnableDocLevelTTL. Setting MongoDBv3.4 also requires setting EnableMongo. Only AllowSelfServeUpgradeToMongo36, DisableRateLimitingResponses, EnableAggregationPipeline, MongoDBv3.4, EnableMongoRetryableWrites, EnableMongoRoleBasedAccessControl, EnableUniqueCompoundNestedDocs, EnableMongo16MBDocumentSupport and mongoEnableDocLevelTTL can be added to an existing Cosmos DB account. | string |
"EnableServerless" |
no |
cosmosdb_account_consistency_level | The Consistency Level to use for this CosmosDB Account - can be either BoundedStaleness, Eventual, Session, Strong or ConsistentPrefix. | string |
"BoundedStaleness" |
no |
cosmosdb_account_enable_automatic_failover | Enable automatic failover for this Cosmos DB account. | bool |
true |
no |
cosmosdb_account_kind | Specifies the Kind of CosmosDB to create - possible values are GlobalDocumentDB, MongoDB and Parse. Defaults to GlobalDocumentDB. Changing this forces a new resource to be created. | string |
"GlobalDocumentDB" |
no |
cosmosdb_account_max_interval_in_seconds | When used with the Bounded Staleness consistency level, this value represents the time amount of staleness (in seconds) tolerated. The accepted range for this value is 5 - 86400 (1 day). Defaults to 5. Required when consistency_level is set to BoundedStaleness. | number |
300 |
no |
cosmosdb_account_max_staleness_prefix | When used with the Bounded Staleness consistency level, this value represents the number of stale requests tolerated. The accepted range for this value is 10 – 2147483647. Defaults to 100. Required when consistency_level is set to BoundedStaleness. | number |
100000 |
no |
cosmosdb_account_name | Specifies the name of the Cosmos DB SQL Container. Changing this forces a new resource to be created. | string |
n/a | yes |
cosmosdb_account_offer_type | Specifies the Offer Type to use for this CosmosDB Account; currently, this can only be set to Standard. | string |
"Standard" |
no |
cosmosdb_virtual_network_rules | List of virtual network rule IDs for CosmosDB | list(string) |
null |
no |
default_tags | A mapping of tags to assign to the resource. | map(any) |
n/a | yes |
environment | Var used for backend container name key | string |
"dev" |
no |
ip_range_filter | List of IP addresses or IP ranges for CosmosDB | list(string) |
[] |
no |
is_virtual_network_filter_enabled | Flag to enable virtual network filtering for CosmosDB | bool |
false |
no |
resource_group_location | Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. | string |
"West Europe" |
no |
resource_group_name | The name of the resource group in which to create the Redis instance. Changing this forces a new resource to be created. | string |
n/a | yes |
Name | Description |
---|---|
endpoint | The endpoint used to connect to the CosmosDB account. |
id | The CosmosDB Account ID. |
primary_key | The Primary key for the CosmosDB Account. |
primary_readonly_key | The Primary read-only Key for the CosmosDB Account. |
read_endpoints | A list of read endpoints available for this CosmosDB account. |
secondary_key | The Secondary key for the CosmosDB Account. |
secondary_readonly_key | The Secondary read-only key for the CosmosDB Account. |
write_endpoints | A list of write endpoints available for this CosmosDB account. |