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

Fail a deployment before any resource creation for mismatches on cloud + location and cloud + tf environment #173

Closed
glennmusa opened this issue Apr 23, 2021 · 0 comments
Assignees

Comments

@glennmusa
Copy link
Contributor

Benefit/Result/Outcome
Today deploy.sh and setup_ezdeploy.sh make use of defaults for AzureCloud to limit the number of arguments a user needs to provide to get started. However, those defaults aren't valid outside of AzureCloud and I shouldn't fail to deploy resources because I didn't know that those defaults were set for me and aren't valid.

Description
Provide a mechanism to check for valid Azure region and valid Terraform AzureRM environment setting.

Could use az account list-locations and terraform docs to source this information: https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs#environment

Acceptance Criteria

  • Provide a way to check for the current cloud + subscription settings to see if the region to be deployed into is available
  • Provide a way to check for the current cloud that the Terraform environment is a match
  • Do not deploy anything if the previous two are not valid
@glennmusa glennmusa self-assigned this Apr 23, 2021
@brooke-hamilton brooke-hamilton changed the title fail a deployment before any resource creation for mismatches on cloud + location and cloud + tf environment Fail a deployment before any resource creation for mismatches on cloud + location and cloud + tf environment Apr 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant