From e45b4ee44d1433f38e670bf72ea2bb7a4d48ac58 Mon Sep 17 00:00:00 2001 From: Paul Bourke Date: Mon, 7 Nov 2022 18:32:56 +0000 Subject: [PATCH] Add variables for cosmos db custom roles Requires https://github.com/aztfmod/terraform-azurerm-caf/pull/1418 --- caf_solution/local.database.tf | 2 ++ caf_solution/variables.database.tf | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/caf_solution/local.database.tf b/caf_solution/local.database.tf index 0dbc1dd59..a86273101 100644 --- a/caf_solution/local.database.tf +++ b/caf_solution/local.database.tf @@ -6,6 +6,8 @@ locals { azurerm_redis_caches = var.azurerm_redis_caches cosmos_dbs = var.cosmos_dbs cosmosdb_sql_databases = var.cosmosdb_sql_databases + cosmosdb_role_mapping = var.cosmosdb_role_mapping + cosmosdb_role_definitions = var.cosmosdb_role_definitions databricks_workspaces = var.databricks_workspaces machine_learning_workspaces = var.machine_learning_workspaces mariadb_databases = var.mariadb_databases diff --git a/caf_solution/variables.database.tf b/caf_solution/variables.database.tf index cabeaf701..9c7f8d3fc 100644 --- a/caf_solution/variables.database.tf +++ b/caf_solution/variables.database.tf @@ -10,6 +10,12 @@ variable "cosmos_dbs" { variable "cosmosdb_sql_databases" { default = {} } +variable "cosmosdb_role_definitions" { + default = {} +} +variable "cosmosdb_role_mapping" { + default = {} +} variable "database" { description = "Database configuration objects" default = {}