Skip to content

Error when migrate to Terraform Registry Codefresh Provider  #60

Open
@thiagolsfortunato

Description

@thiagolsfortunato

After I've moved to Registry Codefresh Provider and run terraform init the Terraform returns the error below:

Initializing the backend...

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

Initializing provider plugins...
- Finding codefresh-io/codefresh versions matching "0.0.19"...
- Finding codefresh.io/app/codefresh versions matching "0.0.19"...
- Installing codefresh-io/codefresh v0.0.19...
- Installed codefresh-io/codefresh v0.0.19 (signed by a HashiCorp partner, key ID 2CBA2F3A84CED39F)

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/cli/plugins/signing.html

│ Error: Invalid provider registry host

│ The host "codefresh.io" given in in provider source address "codefresh.io/app/codefresh" does not offer a Terraform provider registry.

My configuration files:

provider.tf:

provider "codefresh" {
  api_url = "https://g.codefresh.io/api"
  token   = var.codefresh_token
}

versions.tf:

terraform {
  required_version = ">= 0.15"

  required_providers {
    codefresh = {
      version = "0.0.19"
      source  = "codefresh-io/codefresh"
    }
  }
}

If I follow the README.md instructions, downloading and install locally, the command works fine.
https://github.com/codefresh-io/terraform-provider-codefresh#using-the-provider

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions