boltops-tools / terraspace

Terraspace: The Terraform Framework
https://terraspace.cloud
Apache License 2.0
678 stars 46 forks source link

Azure Region switch not working #236

Closed alexl2012 closed 2 years ago

alexl2012 commented 2 years ago

Hi, I am evaluating terraspaces deploy to multiple region functionality and it doesnt seem to let me switch region.

I first set my defaults to northeurope and deployed and that worked fine, i then attempted to change to westeurope. As per the guide i ran the az cli commands to set the region az configure --defaults location=westeurope I confirmed that it was set in my defaults az configure --list-defaults

Then i ran terraspace up demo

it built for northeurope

I then created a new terraspace project to see if there was some kind of persistance in teh project and it still sticks with northeurope.

It appears that its maintaining some cache where by the az settings are being stored in memory.

alexl2012 commented 2 years ago

Realised this was due to a conflict between an env var and the AZ CLI defaults.