<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>

CC BY-SA 4.0
2023-04-03T16:46:37.270Z
2023-04-03T16:46:37.270Z
Evan Carroll
<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>

<terraform><gcloud>
Terraform error: Provider "registry.terraform.io/hashicorp/google" requires explicit configuration. Add a provider block to the root module
Evan Carroll
# 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,
gcloud auth application-default login


---

