Answers: <p>This error means you're likely using the default configuration which requires a user-wide <code>gcloud</code> login. You simple need to run,</p>
  <pre class="lang-sh prettyprint-override"><code>gcloud auth application-default login
  </code></pre>
  
Answers: CC BY-SA 4.0
Answers: 2023-04-03T16:46:37.270Z
Answers: 2023-04-03T16:46:37.270Z
Answers: Evan Carroll
Body: <p>Is there anyway to find out what triggers a message like this,</p>
  <blockquote>
  <p>Provider &quot;registry.terraform.io/hashicorp/google&quot; requires explicit configuration. Add a provider block to the root module and configure the provider's required arguments as described in the provider documentation.</p>
  </blockquote>
  <p>This is what the error looks like in context. I have the provider though defined.</p>
  <pre><code>Planning failed. Terraform encountered an error while generating this plan.
  
  ╷
  │ Error: Invalid provider configuration
  │ 
  │ Provider &quot;registry.terraform.io/hashicorp/google&quot; requires explicit configuration. Add a provider block to the root module and configure the provider's
  │ required arguments as described in the provider documentation.
  │ 
  </code></pre>
  
Tags: <terraform><gcloud>
Title: Terraform error: Provider "registry.terraform.io/hashicorp/google" requires explicit configuration. Add a provider block to the root module
UserDisplayName: Evan Carroll
ThreadText: # Terraform error: Provider "registry.terraform.io/hashicorp/google" requires explicit configuration. Add a provider block to the root module
  
  (Asked by: username_0 on 2023-04-03)
  
  Is there anyway to find out what triggers a message like this,
  
  > Provider "registry.terraform.io/hashicorp/google" requires explicit configuration. Add a provider block to the root module and configure the provider's required arguments as described in the provider documentation.
  
  This is what the error looks like in context. I have the provider though defined.
  
  ```
  Planning failed. Terraform encountered an error while generating this plan.
  
  ╷
  │ Error: Invalid provider configuration
  │ 
  │ Provider "registry.terraform.io/hashicorp/google" requires explicit configuration. Add a provider block to the root module and configure the provider's
  │ required arguments as described in the provider documentation.
  │ 
  
  ```
  
  **Tags:** terraform, gcloud
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2023-04-03. Score: 1 | Accepted answer
  
  This error means you're likely using the default configuration which requires a user-wide `gcloud` login. You simple need to run,
  
  ```sh
  gcloud auth application-default login
  
  ```
  
  
  ---
  
  