Skip to content

Commit

Permalink
Add subscription_id as var since Azure now requires it.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tsonov committed Nov 11, 2024
1 parent b6348c8 commit 0f750f0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/aks/aks_cluster/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/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/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 = "subscription id"
}

0 comments on commit 0f750f0

Please sign in to comment.