Skip to content

Commit

Permalink
added burst capacity variable
Browse files Browse the repository at this point in the history
  • Loading branch information
mamari90 committed Dec 19, 2024
1 parent 098d91c commit 049ea5e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions cosmosdb_account/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ No modules.
| <a name="input_allowed_virtual_network_subnet_ids"></a> [allowed\_virtual\_network\_subnet\_ids](#input\_allowed\_virtual\_network\_subnet\_ids) | The subnets id that are allowed to access this CosmosDB account. | `list(string)` | `[]` | no |
| <a name="input_backup_continuous_enabled"></a> [backup\_continuous\_enabled](#input\_backup\_continuous\_enabled) | Enable Continuous Backup | `bool` | `true` | no |
| <a name="input_backup_periodic_enabled"></a> [backup\_periodic\_enabled](#input\_backup\_periodic\_enabled) | Enable Periodic Backup | <pre>object({<br/> interval_in_minutes = string<br/> retention_in_hours = string<br/> storage_redundancy = string<br/> })</pre> | `null` | no |
| <a name="input_burst_capacity_enabled"></a> [burst\_capacity\_enabled](#input\_burst\_capacity\_enabled) | (Optional) Enable burst capacity for this Cosmos DB account. Defaults to false. | `bool` | `false` | no |
| <a name="input_capabilities"></a> [capabilities](#input\_capabilities) | The capabilities which should be enabled for this Cosmos DB account. | `list(string)` | `[]` | no |
| <a name="input_consistency_policy"></a> [consistency\_policy](#input\_consistency\_policy) | Specifies a consistency\_policy resource, used to define the consistency policy for this CosmosDB account. | <pre>object({<br/> consistency_level = string # The Consistency Level to use for this CosmosDB Account - can be either BoundedStaleness, Eventual, Session, Strong or ConsistentPrefix.<br/> max_interval_in_seconds = number # When used with the Bounded Staleness consistency level, this value represents the time amount of staleness (in seconds) tolerated. Accepted range for this value is 5 - 86400 (1 day). Defaults to 5. Required when consistency_level is set to BoundedStaleness.<br/> max_staleness_prefix = number # When used with the Bounded Staleness consistency level, this value represents the number of stale requests tolerated. Accepted range for this value is 10 – 2147483647. Defaults to 100. Required when consistency_level is set to BoundedStaleness.<br/> })</pre> | <pre>{<br/> "consistency_level": "BoundedStaleness",<br/> "max_interval_in_seconds": 5,<br/> "max_staleness_prefix": 100<br/>}</pre> | no |
| <a name="input_domain"></a> [domain](#input\_domain) | (Optional) Specifies the domain of the CosmosDB Account. | `string` | n/a | yes |
Expand Down
4 changes: 2 additions & 2 deletions cosmosdb_account/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ resource "azurerm_cosmosdb_account" "this" {
enable_automatic_failover = var.enable_automatic_failover
key_vault_key_id = var.key_vault_key_id

mongo_server_version = var.mongo_server_version

mongo_server_version = var.mongo_server_version
burst_capacity_enabled = var.burst_capacity_enabled
geo_location {
location = var.main_geo_location_location
failover_priority = 0
Expand Down
7 changes: 7 additions & 0 deletions cosmosdb_account/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -253,3 +253,10 @@ variable "action" {
))
default = []
}


variable "burst_capacity_enabled" {
type = bool
description = "(Optional) Enable burst capacity for this Cosmos DB account. Defaults to false."
default = false
}

0 comments on commit 049ea5e

Please sign in to comment.