diff --git a/examples/aks/aks_cluster/variables.tf b/examples/aks/aks_cluster/variables.tf index 6dad0a74..53c46e4a 100644 --- a/examples/aks/aks_cluster/variables.tf +++ b/examples/aks/aks_cluster/variables.tf @@ -47,5 +47,5 @@ variable "tags" { variable "subscription_id" { type = string - description = "subscription id" + description = "Azure subscription ID" } diff --git a/examples/aks/aks_cluster_arm_template/providers.tf b/examples/aks/aks_cluster_arm_template/providers.tf index bdab1922..a3895b65 100644 --- a/examples/aks/aks_cluster_arm_template/providers.tf +++ b/examples/aks/aks_cluster_arm_template/providers.tf @@ -1,6 +1,7 @@ # Following providers required by AKS and Vnet resources. provider "azurerm" { features {} + subscription_id = var.subscription_id } provider "azuread" { diff --git a/examples/aks/aks_cluster_arm_template/tf.vars.example b/examples/aks/aks_cluster_arm_template/tf.vars.example index ad015b01..d2d6bd7a 100644 --- a/examples/aks/aks_cluster_arm_template/tf.vars.example +++ b/examples/aks/aks_cluster_arm_template/tf.vars.example @@ -1,3 +1,4 @@ cluster_name = "" cluster_region = "" castai_api_token = "" +subscription_id = "" diff --git a/examples/aks/aks_cluster_arm_template/variables.tf b/examples/aks/aks_cluster_arm_template/variables.tf index 438a91a1..53c46e4a 100644 --- a/examples/aks/aks_cluster_arm_template/variables.tf +++ b/examples/aks/aks_cluster_arm_template/variables.tf @@ -44,3 +44,8 @@ variable "tags" { description = "Optional tags for new cluster nodes. This parameter applies only to new nodes - tags for old nodes are not reconciled." default = {} } + +variable "subscription_id" { + type = string + description = "Azure subscription ID" +} diff --git a/examples/aks/aks_cluster_autoscaler_policies/tf.vars.example b/examples/aks/aks_cluster_autoscaler_policies/tf.vars.example index 4becba44..35261bfb 100644 --- a/examples/aks/aks_cluster_autoscaler_policies/tf.vars.example +++ b/examples/aks/aks_cluster_autoscaler_policies/tf.vars.example @@ -1,3 +1,4 @@ cluster_name = "" cluster_region = "" castai_api_token = "" +subscription_id = "" diff --git a/examples/aks/aks_cluster_azure_cni/providers.tf b/examples/aks/aks_cluster_azure_cni/providers.tf index bdab1922..a3895b65 100644 --- a/examples/aks/aks_cluster_azure_cni/providers.tf +++ b/examples/aks/aks_cluster_azure_cni/providers.tf @@ -1,6 +1,7 @@ # Following providers required by AKS and Vnet resources. provider "azurerm" { features {} + subscription_id = var.subscription_id } provider "azuread" { diff --git a/examples/aks/aks_cluster_azure_cni/tf.vars.example b/examples/aks/aks_cluster_azure_cni/tf.vars.example index 4becba44..35261bfb 100644 --- a/examples/aks/aks_cluster_azure_cni/tf.vars.example +++ b/examples/aks/aks_cluster_azure_cni/tf.vars.example @@ -1,3 +1,4 @@ cluster_name = "" cluster_region = "" castai_api_token = "" +subscription_id = "" diff --git a/examples/aks/aks_cluster_azure_cni/variables.tf b/examples/aks/aks_cluster_azure_cni/variables.tf index 5b7e4415..b04a9a44 100644 --- a/examples/aks/aks_cluster_azure_cni/variables.tf +++ b/examples/aks/aks_cluster_azure_cni/variables.tf @@ -50,3 +50,8 @@ variable "tags" { description = "Optional tags for new cluster nodes. This parameter applies only to new nodes - tags for old nodes are not reconciled." default = {} } + +variable "subscription_id" { + type = string + description = "Azure subscription ID" +} \ No newline at end of file diff --git a/examples/aks/aks_cluster_existing/tf.vars.example b/examples/aks/aks_cluster_existing/tf.vars.example index abedbc3a..beb3669d 100644 --- a/examples/aks/aks_cluster_existing/tf.vars.example +++ b/examples/aks/aks_cluster_existing/tf.vars.example @@ -1,5 +1,6 @@ -cluster_name = "" -cluster_rg = "" -cluster_region = "" -castai_api_token = "" -subnets = [""] \ No newline at end of file +cluster_name = "" +cluster_rg = "" +cluster_region = "" +castai_api_token = "" +subscription_id = "" +subnets = [""] \ No newline at end of file diff --git a/examples/aks/aks_cluster_existing/variables.tf b/examples/aks/aks_cluster_existing/variables.tf index 392d6c53..3f96fcba 100644 --- a/examples/aks/aks_cluster_existing/variables.tf +++ b/examples/aks/aks_cluster_existing/variables.tf @@ -11,7 +11,7 @@ variable "resource_group" { variable "subscription_id" { type = string - description = "subscription id" + description = "Azure subscription ID" } variable "cluster_region" {