Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MLZ Configuration Resources (TF State, Key Vaults) are always created in the Hub subscription #302

Closed
glennmusa opened this issue Jul 20, 2021 · 1 comment · Fixed by #303
Assignees
Labels
bug Something isn't working

Comments

@glennmusa
Copy link
Contributor

Description
Should I try a multi-subscription deployment with a subscription for MLZ configuration other than the hub like below, applying Terraform via deploy.sh will fail because it will always look in the hub subscription for the Terraform state storage account:

src/scripts/deploy.sh -s {config_sub_id} \
-u {hub_sub_id} \
-0 {t0_sub_id} \
-1 {t1_sub_id} \
-2 {t2_sub_id} \
-3 {t3_sub_id}

Steps to Reproduce
Steps to reproduce the behavior:

  1. Run deploy.sh with a configuration subscription -s as a subscription other than the Hub subscription -u
  2. You'll receive this error: Terraform State Resource Group '{the tf state account}' does not exist...validate config.vars file and re-run script

Expected behavior
I can deploy the MLZ configuration resources into whatever subscription I want

Actual behavior
MLZ configuration resources always end up in the Hub subscription.

@glennmusa glennmusa added the bug Something isn't working label Jul 20, 2021
@glennmusa glennmusa self-assigned this Jul 20, 2021
@glennmusa
Copy link
Contributor Author

+@RKauf00

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant