blinqas / station

Use Station to create secure and automated environments for your workloads in Azure
MIT License
7 stars 1 forks source link

bug: when bootstrapping station you get an error that the azurerm cant find the subscription_id #173

Open SanderBlom opened 1 day ago

SanderBlom commented 1 day ago

Description

Currently you will get an error that azurerm can't find the subscription_id property. This happens as the bootstrap script uses terraform --init and upgrades to azurerm v4. In the v4 version you are required to provide the subscription_id in the proivider config:

provider "azurerm" {
  subscription_id = "00000000-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}

or using an environment variable:
export ARM_SUBSCRIPTION_ID=00000000-xxxx-xxxx-xxxx-xxxxxxxxxxxx

Steps to Reproduce

  1. Configure the bootstrap script
  2. Run the script
  3. Observe the error from the azurerm provider.

Expected Behavior

That is just work and uses the subscription you have selected in AzureRM

Actual Behavior

AzureRM fails to init

Terraform Version

1.9.7

Station Version

1.10