Venafi / terraform-provider-venafi

HashiCorp Terraform provider that uses Venafi to streamline machine identity (certificate and key) acquisition.
https://www.terraform.io/docs/providers/venafi/
Mozilla Public License 2.0
17 stars 20 forks source link

Provider registry.terraform.io/venafi/venafi v0.13.0 does not have a package available for your current platform, darwin_arm64. #67

Closed andresvia closed 2 years ago

andresvia commented 2 years ago

PROBLEM SUMMARY

Can't init terraform.

STEPS TO REPRODUCE

  1. Create file: main.tf
terraform {
  required_providers {
    venafi = {
      source  = "venafi/venafi"
      version = "~> 0.13.0"
    }
  }
}
provider "venafi" {
  api_key = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
  zone    = "Business App\\Enterprise CIT"
}
  1. Do terraform init
terraform init 

Initializing the backend...

Initializing provider plugins...
- Finding venafi/venafi versions matching "~> 0.13.0"...
╷
│ Error: Incompatible provider version
│ 
│ Provider registry.terraform.io/venafi/venafi v0.13.0 does not have a package available for your current platform,
│ darwin_arm64.
│ 
│ Provider releases are separate from Terraform CLI releases, so not all providers are available for all platforms. Other
│ versions of this provider may have different platforms supported.

EXPECTED RESULTS

Terraform init without errors.

ACTUAL RESULTS

Terraform init with errors.

ENVIRONMENT DETAILS

uname -a

Darwin xxxxxx 21.2.0 Darwin Kernel Version 21.2.0: Sun Nov 28 20:28:41 PST 2021; root:xnu-8019.61.5~1/RELEASE_ARM64_T6000 arm64

terraform version

Terraform v1.1.3
on darwin_arm64

COMMENTS/WORKAROUNDS

Workaround (YMMV, use at your own risk)

git clone https://github.com/Venafi/terraform-provider-venafi.git

git checkout v0.13.0

go build

mv terraform-provider-venafi ~/.terraform.d/plugins/registry.terraform.io/venafi/venafi/0.13.0/darwin_arm64/terraform-provider-venafi_v0.13.0_x5

You may need to tweak your .terraform.lock.hcl file.

Note: I don't know what _x5 stands for. (see)

REFERENCES

andresvia commented 2 years ago

The problem persist on 0.14.0

terraform {
  required_providers {
    venafi = {
      source  = "venafi/venafi"
      version = "~> 0.14.0"
    }
  }
}
provider "venafi" {
  api_key = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
  zone    = "Business App\\Enterprise CIT"
}
Initializing provider plugins...
- Finding venafi/venafi versions matching "~> 0.14.0"...
2022-02-09T06:27:11.058-0800 [DEBUG] Service discovery for registry.terraform.io at https://registry.terraform.io/.well-known/terraform.json
2022-02-09T06:27:11.356-0800 [DEBUG] GET https://registry.terraform.io/v1/providers/venafi/venafi/versions
2022-02-09T06:27:11.558-0800 [DEBUG] GET https://registry.terraform.io/v1/providers/venafi/venafi/0.14.0/download/darwin/arm64
╷
│ Error: Incompatible provider version
│ 
│ Provider registry.terraform.io/venafi/venafi v0.14.0 does not have a package available for your current platform,
│ darwin_arm64.
│ 
│ Provider releases are separate from Terraform CLI releases, so not all providers are available for all platforms. Other
│ versions of this provider may have different platforms supported.
vfidevbot commented 2 years ago

@andresvia that's correct, we are not yet supporting darwin_arm64 but are planning to in a future release and will publish it to the Terraform registry when we do.

andresvia commented 2 years ago

The problem still persist on the new release 0.15.0. Thanks.

luispresuelVenafi commented 2 years ago

Hi @andresvia, we are happy to let you know that we addressed this enhancement in the release version 0.15.1 :tada: :confetti_ball:

luispresuelVenafi commented 2 years ago

Update: @andresvia in order to be able to import it from the Terraform registry you need to point to version v0.15.2, since we had an issue when publishing it to the registry.

andresvia commented 2 years ago

I tried it out with:

main.tf

terraform {
  required_providers {
    venafi = {
      source = "Venafi/venafi"
      version = "~> 0.15.2"
    }
  }
}

And:

terraform init -upgrade

And apply|destroy is working for me in my Darwin ARM64, thanks!