Skip to content

Instantly share code, notes, and snippets.

@Jonas-Sander
Created March 16, 2020 13:47
Show Gist options
  • Save Jonas-Sander/f55e4c54464f15e30e7ce46de8ef3934 to your computer and use it in GitHub Desktop.
Save Jonas-Sander/f55e4c54464f15e30e7ce46de8ef3934 to your computer and use it in GitHub Desktop.
google-beta provider credentials problem
jonassander@MacBook-Pro test % terraform apply
2020/03/16 14:45:46 [WARN] Log levels other than TRACE are currently unreliable, and are supported only for backward compatibility.
Use TF_LOG=TRACE to see Terraform's internal logs.
----
2020/03/16 14:45:46 [INFO] Terraform version: 0.12.23
2020/03/16 14:45:46 [INFO] Go runtime version: go1.13.8
2020/03/16 14:45:46 [INFO] CLI args: []string{"/usr/local/bin/terraform", "apply"}
2020/03/16 14:45:46 [DEBUG] Attempting to open CLI config file: /Users/jonassander/.terraformrc
2020/03/16 14:45:46 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2020/03/16 14:45:46 [INFO] CLI command args: []string{"apply"}
2020/03/16 14:45:46 [WARN] Log levels other than TRACE are currently unreliable, and are supported only for backward compatibility.
Use TF_LOG=TRACE to see Terraform's internal logs.
----
2020/03/16 14:45:46 [DEBUG] New state was assigned lineage "8722321d-8994-cf61-f5e7-4ca742cb30c2"
2020/03/16 14:45:46 [DEBUG] checking for provider in "."
2020/03/16 14:45:46 [DEBUG] checking for provider in "/usr/local/bin"
2020/03/16 14:45:46 [DEBUG] checking for provider in ".terraform/plugins/darwin_amd64"
2020/03/16 14:45:46 [DEBUG] found provider "terraform-provider-google-beta_v3.12.0_x5"
2020/03/16 14:45:46 [DEBUG] found provider "terraform-provider-google_v3.12.0_x5"
2020/03/16 14:45:46 [DEBUG] found valid plugin: "google-beta", "3.12.0", "/Users/jonassander/development/projects/sharezone-app/infrastructure/google_cloud_platform/test/.terraform/plugins/darwin_amd64/terraform-provider-google-beta_v3.12.0_x5"
2020/03/16 14:45:46 [DEBUG] found valid plugin: "google", "3.12.0", "/Users/jonassander/development/projects/sharezone-app/infrastructure/google_cloud_platform/test/.terraform/plugins/darwin_amd64/terraform-provider-google_v3.12.0_x5"
2020/03/16 14:45:46 [DEBUG] checking for provisioner in "."
2020/03/16 14:45:46 [DEBUG] checking for provisioner in "/usr/local/bin"
2020/03/16 14:45:46 [DEBUG] checking for provisioner in ".terraform/plugins/darwin_amd64"
2020/03/16 14:45:46 [INFO] backend/local: starting Apply operation
2020-03-16T14:45:47.132+0100 [INFO] plugin: configuring client automatic mTLS
2020-03-16T14:45:47.162+0100 [DEBUG] plugin: starting plugin: path=/Users/jonassander/development/projects/sharezone-app/infrastructure/google_cloud_platform/test/.terraform/plugins/darwin_amd64/terraform-provider-google_v3.12.0_x5 args=[/Users/jonassander/development/projects/sharezone-app/infrastructure/google_cloud_platform/test/.terraform/plugins/darwin_amd64/terraform-provider-google_v3.12.0_x5]
2020-03-16T14:45:47.168+0100 [DEBUG] plugin: plugin started: path=/Users/jonassander/development/projects/sharezone-app/infrastructure/google_cloud_platform/test/.terraform/plugins/darwin_amd64/terraform-provider-google_v3.12.0_x5 pid=26398
2020-03-16T14:45:47.168+0100 [DEBUG] plugin: waiting for RPC address: path=/Users/jonassander/development/projects/sharezone-app/infrastructure/google_cloud_platform/test/.terraform/plugins/darwin_amd64/terraform-provider-google_v3.12.0_x5
2020-03-16T14:45:47.188+0100 [INFO] plugin.terraform-provider-google_v3.12.0_x5: configuring server automatic mTLS: timestamp=2020-03-16T14:45:47.188+0100
2020-03-16T14:45:47.218+0100 [DEBUG] plugin.terraform-provider-google_v3.12.0_x5: plugin address: address=/var/folders/n0/ndz66xq97jb7jxygjzt6f49w0000gn/T/plugin639614253 network=unix timestamp=2020-03-16T14:45:47.218+0100
2020-03-16T14:45:47.218+0100 [DEBUG] plugin: using plugin: version=5
2020-03-16T14:45:47.297+0100 [DEBUG] plugin: plugin process exited: path=/Users/jonassander/development/projects/sharezone-app/infrastructure/google_cloud_platform/test/.terraform/plugins/darwin_amd64/terraform-provider-google_v3.12.0_x5 pid=26398
2020-03-16T14:45:47.297+0100 [DEBUG] plugin: plugin exited
2020-03-16T14:45:47.297+0100 [INFO] plugin: configuring client automatic mTLS
2020-03-16T14:45:47.322+0100 [DEBUG] plugin: starting plugin: path=/Users/jonassander/development/projects/sharezone-app/infrastructure/google_cloud_platform/test/.terraform/plugins/darwin_amd64/terraform-provider-google-beta_v3.12.0_x5 args=[/Users/jonassander/development/projects/sharezone-app/infrastructure/google_cloud_platform/test/.terraform/plugins/darwin_amd64/terraform-provider-google-beta_v3.12.0_x5]
2020-03-16T14:45:47.328+0100 [DEBUG] plugin: plugin started: path=/Users/jonassander/development/projects/sharezone-app/infrastructure/google_cloud_platform/test/.terraform/plugins/darwin_amd64/terraform-provider-google-beta_v3.12.0_x5 pid=26399
2020-03-16T14:45:47.328+0100 [DEBUG] plugin: waiting for RPC address: path=/Users/jonassander/development/projects/sharezone-app/infrastructure/google_cloud_platform/test/.terraform/plugins/darwin_amd64/terraform-provider-google-beta_v3.12.0_x5
2020-03-16T14:45:47.344+0100 [INFO] plugin.terraform-provider-google-beta_v3.12.0_x5: configuring server automatic mTLS: timestamp=2020-03-16T14:45:47.344+0100
2020-03-16T14:45:47.373+0100 [DEBUG] plugin: using plugin: version=5
2020-03-16T14:45:47.373+0100 [DEBUG] plugin.terraform-provider-google-beta_v3.12.0_x5: plugin address: address=/var/folders/n0/ndz66xq97jb7jxygjzt6f49w0000gn/T/plugin613194410 network=unix timestamp=2020-03-16T14:45:47.373+0100
2020-03-16T14:45:47.461+0100 [DEBUG] plugin: plugin process exited: path=/Users/jonassander/development/projects/sharezone-app/infrastructure/google_cloud_platform/test/.terraform/plugins/darwin_amd64/terraform-provider-google-beta_v3.12.0_x5 pid=26399
2020-03-16T14:45:47.461+0100 [DEBUG] plugin: plugin exited
2020/03/16 14:45:47 [INFO] terraform: building graph: GraphTypeValidate
2020/03/16 14:45:47 [DEBUG] adding implicit provider configuration provider.google, implied first by google_compute_network.default
2020/03/16 14:45:47 [DEBUG] ProviderTransformer: "google_compute_network.default" (*terraform.NodeValidatableResource) needs provider.google
2020/03/16 14:45:47 [DEBUG] pruning unused provider.google-beta
2020/03/16 14:45:47 [DEBUG] ReferenceTransformer: "google_compute_network.default" references: []
2020/03/16 14:45:47 [DEBUG] ReferenceTransformer: "provider.google" references: []
2020/03/16 14:45:47 [DEBUG] Starting graph walk: walkValidate
2020-03-16T14:45:47.462+0100 [INFO] plugin: configuring client automatic mTLS
2020-03-16T14:45:47.491+0100 [DEBUG] plugin: starting plugin: path=/Users/jonassander/development/projects/sharezone-app/infrastructure/google_cloud_platform/test/.terraform/plugins/darwin_amd64/terraform-provider-google_v3.12.0_x5 args=[/Users/jonassander/development/projects/sharezone-app/infrastructure/google_cloud_platform/test/.terraform/plugins/darwin_amd64/terraform-provider-google_v3.12.0_x5]
2020-03-16T14:45:47.496+0100 [DEBUG] plugin: plugin started: path=/Users/jonassander/development/projects/sharezone-app/infrastructure/google_cloud_platform/test/.terraform/plugins/darwin_amd64/terraform-provider-google_v3.12.0_x5 pid=26400
2020-03-16T14:45:47.496+0100 [DEBUG] plugin: waiting for RPC address: path=/Users/jonassander/development/projects/sharezone-app/infrastructure/google_cloud_platform/test/.terraform/plugins/darwin_amd64/terraform-provider-google_v3.12.0_x5
2020-03-16T14:45:47.511+0100 [INFO] plugin.terraform-provider-google_v3.12.0_x5: configuring server automatic mTLS: timestamp=2020-03-16T14:45:47.511+0100
2020-03-16T14:45:47.538+0100 [DEBUG] plugin.terraform-provider-google_v3.12.0_x5: plugin address: address=/var/folders/n0/ndz66xq97jb7jxygjzt6f49w0000gn/T/plugin615671407 network=unix timestamp=2020-03-16T14:45:47.538+0100
2020-03-16T14:45:47.538+0100 [DEBUG] plugin: using plugin: version=5
2020-03-16T14:45:47.637+0100 [DEBUG] plugin: plugin process exited: path=/Users/jonassander/development/projects/sharezone-app/infrastructure/google_cloud_platform/test/.terraform/plugins/darwin_amd64/terraform-provider-google_v3.12.0_x5 pid=26400
2020-03-16T14:45:47.637+0100 [DEBUG] plugin: plugin exited
2020/03/16 14:45:47 [INFO] backend/local: apply calling Refresh
2020/03/16 14:45:47 [INFO] terraform: building graph: GraphTypeRefresh
2020/03/16 14:45:47 [DEBUG] pruning unused provider.google-beta
2020/03/16 14:45:47 [DEBUG] Starting graph walk: walkRefresh
2020/03/16 14:45:47 [INFO] backend/local: apply calling Plan
2020/03/16 14:45:47 [INFO] terraform: building graph: GraphTypePlan
2020/03/16 14:45:47 [DEBUG] adding implicit provider configuration provider.google, implied first by google_compute_network.default
2020/03/16 14:45:47 [DEBUG] ProviderTransformer: "google_compute_network.default" (*terraform.NodePlannableResource) needs provider.google
2020/03/16 14:45:47 [DEBUG] pruning unused provider.google-beta
2020/03/16 14:45:47 [DEBUG] ReferenceTransformer: "google_compute_network.default" references: []
2020/03/16 14:45:47 [DEBUG] ReferenceTransformer: "provider.google" references: []
2020/03/16 14:45:47 [DEBUG] Starting graph walk: walkPlan
2020-03-16T14:45:47.639+0100 [INFO] plugin: configuring client automatic mTLS
2020-03-16T14:45:47.664+0100 [DEBUG] plugin: starting plugin: path=/Users/jonassander/development/projects/sharezone-app/infrastructure/google_cloud_platform/test/.terraform/plugins/darwin_amd64/terraform-provider-google_v3.12.0_x5 args=[/Users/jonassander/development/projects/sharezone-app/infrastructure/google_cloud_platform/test/.terraform/plugins/darwin_amd64/terraform-provider-google_v3.12.0_x5]
2020-03-16T14:45:47.669+0100 [DEBUG] plugin: plugin started: path=/Users/jonassander/development/projects/sharezone-app/infrastructure/google_cloud_platform/test/.terraform/plugins/darwin_amd64/terraform-provider-google_v3.12.0_x5 pid=26401
2020-03-16T14:45:47.669+0100 [DEBUG] plugin: waiting for RPC address: path=/Users/jonassander/development/projects/sharezone-app/infrastructure/google_cloud_platform/test/.terraform/plugins/darwin_amd64/terraform-provider-google_v3.12.0_x5
2020-03-16T14:45:47.685+0100 [INFO] plugin.terraform-provider-google_v3.12.0_x5: configuring server automatic mTLS: timestamp=2020-03-16T14:45:47.685+0100
2020-03-16T14:45:47.711+0100 [DEBUG] plugin.terraform-provider-google_v3.12.0_x5: plugin address: address=/var/folders/n0/ndz66xq97jb7jxygjzt6f49w0000gn/T/plugin602525268 network=unix timestamp=2020-03-16T14:45:47.711+0100
2020-03-16T14:45:47.711+0100 [DEBUG] plugin: using plugin: version=5
2020-03-16T14:45:47.788+0100 [DEBUG] plugin.terraform-provider-google_v3.12.0_x5: 2020/03/16 14:45:47 [INFO] Authenticating using DefaultClient...
2020-03-16T14:45:47.788+0100 [DEBUG] plugin.terraform-provider-google_v3.12.0_x5: 2020/03/16 14:45:47 [INFO] -- Scopes: [https://www.googleapis.com/auth/compute https://www.googleapis.com/auth/cloud-platform https://www.googleapis.com/auth/ndev.clouddns.readwrite https://www.googleapis.com/auth/devstorage.full_control https://www.googleapis.com/auth/userinfo.email]
2020/03/16 14:45:47 [ERROR] <root>: eval: *terraform.EvalConfigProvider, err: google: could not find default credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information.
2020/03/16 14:45:47 [ERROR] <root>: eval: *terraform.EvalSequence, err: google: could not find default credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information.
2020/03/16 14:45:47 [ERROR] <root>: eval: *terraform.EvalOpFilter, err: google: could not find default credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information.
2020/03/16 14:45:47 [ERROR] <root>: eval: *terraform.EvalSequence, err: google: could not find default credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information.
Error: google: could not find default credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information.
on <empty> line 0:
(source code not available)
2020-03-16T14:45:47.792+0100 [DEBUG] plugin: plugin process exited: path=/Users/jonassander/development/projects/sharezone-app/infrastructure/google_cloud_platform/test/.terraform/plugins/darwin_amd64/terraform-provider-google_v3.12.0_x5 pid=26401
2020-03-16T14:45:47.793+0100 [DEBUG] plugin: plugin exited
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment