Skip to content

Commit

Permalink
CB-27432 azurerm requires subscription ID to be provided explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
daszabo committed Oct 9, 2024
1 parent e3db40a commit 1712c97
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion azure/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 8 additions & 0 deletions azure/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit 1712c97

Please sign in to comment.