Terraform Third Party Providers (gsuite)

I’m trying to use a 3rd party provider for gsuite management, but I keep getting an error on terraform init “Error while installing hashicorp/gsuite: provider registry.”

terraform version

Terraform v0.13.5
+ provider registry.terraform.io/deviavir/gsuite v0.1.56
+ provider registry.terraform.io/hashicorp/google v3.48.0

I have providers.tf set up as so.

terraform {
  required_providers {
    google = {
      source  = "hashicorp/google"
      version = "~> 3.48.0"
    gsuite = {
      source  = "deviavir/gsuite"
      version = "0.1.56"

I have run run terraform 0.13upgrade prior to terraform init and have versions.tf

terraform {
  required_version = ">= 0.13"

terraform init still seems to download the correct provider but also seems to try download hashicorp/gsuite. Any help would be appreciated in solving this issue.

Initializing modules...
- dr_test_restore in modules/gcp_project

Initializing the backend...

Successfully configured the backend "gcs"! Terraform will automatically
use this backend unless the backend configuration changes.

Initializing provider plugins...
- Finding latest version of hashicorp/gsuite...
- Finding hashicorp/google versions matching "~> 3.48.0"...
- Finding deviavir/gsuite versions matching "0.1.56"...
- Installing hashicorp/google v3.48.0...
- Installed hashicorp/google v3.48.0 (signed by HashiCorp)
- Installing deviavir/gsuite v0.1.56...
- Installed deviavir/gsuite v0.1.56 (self-signed, key ID AD9970F98EB884FD)

Partner and community providers are signed by their developers.
If you'd like to know more about provider signing, you can read about it here:

Error: Failed to install provider

Error while installing hashicorp/gsuite: provider registry
registry.terraform.io does not have a provider named

That error suggests that you have either a module which refers to the gsuite provider but is missing the source block, or the incorrect provider is in your terraform state .

Run the terraform providers command to see where Terraform is seeing the hashicorp/gsuite provider. If it is in a module, you need to add the required_providers block in each module. If the hashicorp/gsuite provider is in state, you can use the terraform state replace-provider command to replace hashicorp/gsuite with deviavir/gsuite

1 Like

Thanks, I had a module, I removed the module and it’s working fine now. I just need to work through some authentication issues with the provider.