Skip to content

Commit

Permalink
Align all examples for subscription_id param
Browse files Browse the repository at this point in the history
  • Loading branch information
Tsonov committed Nov 11, 2024
1 parent 0f750f0 commit 43e8492
Show file tree
Hide file tree
Showing 10 changed files with 23 additions and 7 deletions.
2 changes: 1 addition & 1 deletion examples/aks/aks_cluster/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,5 @@ variable "tags" {

variable "subscription_id" {
type = string
description = "subscription id"
description = "Azure subscription ID"
}
1 change: 1 addition & 0 deletions examples/aks/aks_cluster_arm_template/providers.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Following providers required by AKS and Vnet resources.
provider "azurerm" {
features {}
subscription_id = var.subscription_id
}

provider "azuread" {
Expand Down
1 change: 1 addition & 0 deletions examples/aks/aks_cluster_arm_template/tf.vars.example
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
cluster_name = "<placeholder>"
cluster_region = "<placeholder>"
castai_api_token = "<placeholder>"
subscription_id = "<place-holder>"
5 changes: 5 additions & 0 deletions examples/aks/aks_cluster_arm_template/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
cluster_name = "<place-holder>"
cluster_region = "<place-holder>"
castai_api_token = "<place-holder>"
subscription_id = "<place-holder>"
1 change: 1 addition & 0 deletions examples/aks/aks_cluster_azure_cni/providers.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Following providers required by AKS and Vnet resources.
provider "azurerm" {
features {}
subscription_id = var.subscription_id
}

provider "azuread" {
Expand Down
1 change: 1 addition & 0 deletions examples/aks/aks_cluster_azure_cni/tf.vars.example
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
cluster_name = "<place-holder>"
cluster_region = "<place-holder>"
castai_api_token = "<place-holder>"
subscription_id = "<place-holder>"
5 changes: 5 additions & 0 deletions examples/aks/aks_cluster_azure_cni/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
11 changes: 6 additions & 5 deletions examples/aks/aks_cluster_existing/tf.vars.example
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
cluster_name = ""
cluster_rg = ""
cluster_region = ""
castai_api_token = ""
subnets = [""]
cluster_name = "<place-holder>"
cluster_rg = "<place-holder>"
cluster_region = "<place-holder>"
castai_api_token = "<place-holder>"
subscription_id = "<place-holder>"
subnets = ["<place-holder>"]
2 changes: 1 addition & 1 deletion examples/aks/aks_cluster_existing/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ variable "resource_group" {

variable "subscription_id" {
type = string
description = "subscription id"
description = "Azure subscription ID"
}

variable "cluster_region" {
Expand Down

0 comments on commit 43e8492

Please sign in to comment.