confluentinc / terraform-provider-confluentcloud

Confluent Cloud Terraform Provider is deprecated in favor of Confluent Terraform Provider
https://registry.terraform.io/providers/confluentinc/confluentcloud/latest/docs
52 stars 23 forks source link

Unable to run terraform init for custom module. #26

Closed gof-ctm closed 2 years ago

gof-ctm commented 2 years ago

module.tf

module "confluentcloud" {
  source     = "../../"
  topic_name = "dev-topic"
}

Then ran terraform init

Initializing modules...

Initializing the backend...

Initializing provider plugins...
- Finding latest version of hashicorp/confluentcloud...
- Finding confluentinc/confluentcloud versions matching "0.2.0"...
- Installing confluentinc/confluentcloud v0.2.0...
- Installed confluentinc/confluentcloud v0.2.0 (signed by a HashiCorp partner, key ID
 Error: Failed to query available provider packages
│ 
│ Could not retrieve the list of available versions for provider hashicorp/confluentcloud: provider registry registry.terraform.io does not have a provider named
│ registry.terraform.io/hashicorp/confluentcloud
│ 
│ Did you intend to use confluentinc/confluentcloud? If so, you must specify that source address in each module which requires that provider. To see which modules are currently depending on
│ hashicorp/confluentcloud, run the following command:
│     terraform providers

Any ideas?

linouk23 commented 2 years ago

Thanks for creating an issue! That seems to be related. to #20.

linouk23 commented 2 years ago

@gof-ctm could you please take a look at this comment from #20 that should resolve your issue? If it doesn't, please provide a minimum viable example with both file contents and I'll help you to update the files.

Let me know if that helps!

linouk23 commented 2 years ago

The author of a very similar issue #20 reacted with a 👍 so I think it's OK to close the issue too.