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
16 stars 20 forks source link

Request for linux_arm64 build #119

Open tusv opened 8 months ago

tusv commented 8 months ago

BUSINESS PROBLEM We are using docker desktop on Apple Silicon mac to build linux images with arm64. Terraform itself supports linux_arm64 and most of the providers we use also support it with an exception of venafi.

PROPOSED SOLUTION Build the provider for linux_arm64 architecture and make it available via terraform registry.

CURRENT ALTERNATIVES As a workaround we are able to hack provider installation by creating a file system mirror with a manual copy of linux_amd64 folder for venafi named as linux_arm64 and using that mirror specifically for venafi.

VENAFI EXPERIENCE Using Venafi for last 3+ years to manage both public and private server certificates.

rvashishth commented 6 months ago

I have exact same requirement. Thanks for opening the issue.

@tusv please explain the steps for the workaround.

rvashishth commented 5 months ago

I have exact same requirement. Thanks for opening the issue.

@tusv please explain the steps for the workaround.

Following steps worked for me

  1. Build this repo for linux arm64 arch

git clone --branch v0.16.1 --single-branch https://github.com/Venafi/terraform-provider-venafi.git

GOOS=linux GOARCH=arm64 go build -o terraform-provider-venafi_v0.16.1

  1. Place the build artifact as below under .terraform dir
Screenshot 2024-02-12 at 2 25 26 PM
  1. Set the plugin dir as env variable for terraform

TF_PLUGIN_CACHE_DIR=/workspace/terraform/infra/platform/.terraform/plugins