Created
January 14, 2021 13:30
-
-
Save stvdilln/3db2305783e2fb3404a85b202a227e19 to your computer and use it in GitHub Desktop.
terraform-azurerm-sample-cosmosdb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# 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