cloudamqp / terraform-provider-cloudamqp

Terraform Provider for CloudAMQP
https://registry.terraform.io/providers/cloudamqp/cloudamqp
Mozilla Public License 2.0
35 stars 39 forks source link

Error initializing the provider #86

Closed mpalu closed 3 years ago

mpalu commented 3 years ago

I'm getting the following error when trying to initialize my project and download the provider:

Initializing the backend...

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

Initializing provider plugins...
- Finding cloudamqp/cloudamqp versions matching "1.8.6"...
- Finding latest version of hashicorp/cloudamqo...
- Installing cloudamqp/cloudamqp v1.8.6...
- Installed cloudamqp/cloudamqp v1.8.6 (self-signed, key ID D2F4A50F2BA2AFDC)

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:
https://www.terraform.io/docs/plugins/signing.html

Error: Failed to query available provider packages

Could not retrieve the list of available versions for provider
hashicorp/cloudamqo: provider registry registry.terraform.io does not have a
provider named registry.terraform.io/hashicorp/cloudamqo

I think it might be a mistyped name of the provider in the Terraform Registry due to cloudamqo output.

mpalu commented 3 years ago

Just noticed that I was getting the error because copied and pasted from the documentation page which has a mistyped resource name for Datadog example, so Terraform was trying to download the provider implicity:

resource "cloudamqo_integration_metric" "datadog" {
  instance_id = cloudamqp_instance.instance.id
  name = "datadog"
  api_key = var.datadog_api_key
  region = var.datadog_region
}

https://registry.terraform.io/providers/cloudamqp/cloudamqp/latest/docs/resources/integration_metrics