Skip to content

Instantly share code, notes, and snippets.

@stvdilln
Created January 14, 2021 13:30
Show Gist options
  • Save stvdilln/3db2305783e2fb3404a85b202a227e19 to your computer and use it in GitHub Desktop.
Save stvdilln/3db2305783e2fb3404a85b202a227e19 to your computer and use it in GitHub Desktop.
terraform-azurerm-sample-cosmosdb
#
# Create a cosmosDB account
#
module cosmosdb_account {
depends_on = [ azurerm_key_vault_access_policy.current_user ]
source = "../../../submodules/terraform-azurerm/services/cosmos-db/endpoint/dual/secure/v1"
context = module.coreinfra.context
observability_settings = module.coreinfra.observability_settings
service_settings = {
name = local.resource_name
tier = "Standard"
kind = "GlobalDocumentDB"
failover_location = "WestUS"
consistency_level = "Eventual"
}
security_settings = {
secret_prefix = "cosmos-${module.coreinfra.context.environment_name}"
keyvault_id = module.keyvault.id
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment