Closed ryan-mf closed 7 years ago
"Region" is a required property for Google provider (https://github.com/hashicorp/terraform/blob/master/builtin/providers/google/provider.go#L48)
So you have to have something like that in your tf file:
provider "google" { credentials = "${file("account.json")}" project = "my-gce-project" region = "us-central1" }
Yep, I have providers in place with all necessary values and a bunch of resources using them. I was just trying to add creation of the project itself to terraform too. I fiddled around today and got past this issue (not in front of computer here so can't past changes I made) and ran into a new roadblock with Google API errors that I haven't enabled the right APIs to compete the task....on a new project I'm trying to create. Chicken before egg. I'll create a new ticket if I can't get past it.
Thanks!
@ryan-mf, it sounds like you've solved the issue so I'm going to go ahead and close it. Feel free to reopen or file a new issue if necessary.
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Terraform Version
Terraform v0.8.6
Affected Resource(s)
Please list the resources as a list, for example:
Terraform Configuration Files
Expected Behavior
Terraform should provision (apply) or show (plan) the resources I'm requesting.
Actual Behavior
Terraform prompts for a value for "region" like so: user@Ubuntu:~/github/techops/environments/stage/terraform$ TF_VAR_ENV_SHORT=stage TF_VAR_ENVIRONMENT=company-stage GOOGLE_PROJECT=${TF_VAR_ENVIRONMENT} GOOGLE_CREDENTIALS=
cat ./company.json
terraform plan provider.google.region Enter a value:Steps to Reproduce
Important Factoids