diff --git a/azure/main.tf b/azure/main.tf index 8d89d9b..905989b 100644 --- a/azure/main.tf +++ b/azure/main.tf @@ -93,7 +93,7 @@ module "cdp_deploy" { datalake_async_creation = var.datalake_async_creation # From pre-reqs module output - azure_subscription_id = module.cdp_azure_prereqs.azure_subscription_id + azure_subscription_id = var.azure_subscription_id == null ? module.cdp_azure_prereqs.azure_subscription_id : var.azure_subscription_id azure_tenant_id = module.cdp_azure_prereqs.azure_tenant_id azure_resource_group_name = module.cdp_azure_prereqs.azure_resource_group_name diff --git a/azure/variables.tf b/azure/variables.tf index 5004e9c..ca3824c 100644 --- a/azure/variables.tf +++ b/azure/variables.tf @@ -113,6 +113,14 @@ variable "enable_raz" { default = true } +variable "azure_subscription_id" { + type = string + + description = "The subscription where the environment should be deployed to" + + default = null +} + # ------- Network Resources ------- variable "ingress_extra_cidrs_and_ports" { type = object({