GoogleCloudPlatform / terraform-provider-cdap

Custom Terraform Provider for CDAP
https://registry.terraform.io/providers/GoogleCloudPlatform/cdap/
Apache License 2.0
12 stars 12 forks source link

Error on terraform init when added module terraform-google-modules/data-fusion/google//modules/dataproc_profile #101

Closed JCFlores93 closed 3 years ago

JCFlores93 commented 3 years ago

Code used.

  required_version = ">= 0.13"  
  required_providers {
    cdap = {
      source = "GoogleCloudPlatform/cdap"
      version = "0.9.0"
    }
    google = {
      source = "hashicorp/google"
      version = "3.82.0"
    }
  }
}

data "google_client_config" "current" {}

provider "cdap" {
  host  = "${module.project_dev_dcipoc_01_data_fusion.service_endpoint}/api"
  token = data.google_client_config.current.access_token
}

module "custom_dataproc" {
  source  = "terraform-google-modules/data-fusion/google//modules/dataproc_profile"
  version = "0.1"

  name   = "custom-dataproc"
  label  = "Custom Dataproc Profile"

Error:

Initializing modules...
Downloading terraform-google-modules/data-fusion/google 0.1.0 for custom_dataproc...
- custom_dataproc in .terraform/modules/custom_dataproc/modules/dataproc_profile

Initializing the backend...

Initializing provider plugins...
- Using previously-installed googlecloudplatform/cdap v0.9.0
- Using previously-installed hashicorp/google v3.82.0
- Using previously-installed hashicorp/random v3.1.0
- Using previously-installed hashicorp/google-beta v3.81.0
- Finding latest version of hashicorp/cdap...

Error: Failed to install provider

Error while installing hashicorp/cdap: provider registry registry.terraform.io
does not have a provider named registry.terraform.io/hashicorp/cdap
umairidris commented 3 years ago

This is a module issue, please file a bug in the module repo instead https://github.com/terraform-google-modules/terraform-google-data-fusion

JCFlores93 commented 3 years ago

Thanks @umairidris , will do.