I've followed your guide step-by-step.
But I probably have forgotten something that is isn't explicitly mentioned.
I get the following error when I run "terraform plan"
Waiting for the plan to start...
Terraform v1.9.8
on linux_amd64
Initializing plugins and modules...
╷
│ Error: Attempted to load application default credentials since neither `credentials` nor `access_token` was set in the provider block. No credentials loaded. To use your gcloud credentials, run 'gcloud auth application-default login'
│
│ with provider["registry.terraform.io/hashicorp/google"],
│ on main.tf line 1, in provider "google":
│ 1: provider "google" {
│
│ google: could not find default credentials. See
│ https://cloud.google.com/docs/authentication/external/set-up-adc for more
│ information
╵
Operation failed: failed running terraform plan (exit 1)
My main.tf looks like this:
provider "google" {
project = "key-chalice-xxxxxx-tx"
region = "us-central1"
zone = "us-central1-c"
user_project_override = true
billing_project = "key-chalice-xxxxxx-tx"
}
And I've made sure to run "gcloud auth application-default login" in the same shell just before.
I believe I might have to move my folders/files around, but I don't know where to place what.
I've noticed that the "%APPDATA%\gcloud\application_default_credentials.json" and I have the git clone under (userprofile)\Git\actual-gcp
I tried to add the "credentilas" line to main-tf but it did not understand my path/filename. Or otherwise complained it was not a JSON file at all.
I also have the same problem with the ssh key path. It will not recognized it's existences.
I also tried to place the files in the same folder as actual-gcp...
I've followed your guide step-by-step. But I probably have forgotten something that is isn't explicitly mentioned.
I get the following error when I run "terraform plan"
My main.tf looks like this:
And I've made sure to run "gcloud auth application-default login" in the same shell just before.
I believe I might have to move my folders/files around, but I don't know where to place what. I've noticed that the "%APPDATA%\gcloud\application_default_credentials.json" and I have the git clone under (userprofile)\Git\actual-gcp I tried to add the "credentilas" line to main-tf but it did not understand my path/filename. Or otherwise complained it was not a JSON file at all.
I also have the same problem with the ssh key path. It will not recognized it's existences.
I also tried to place the files in the same folder as actual-gcp...