splunk / terraform-provider-victorops

Manage VictorOps teams, users, escalation policies and routing keys using Terraform
Mozilla Public License 2.0
12 stars 11 forks source link

Apple Silicon not supported #14

Open scottrobertson opened 2 years ago

scottrobertson commented 2 years ago

Unable to run this on Apple Silicon.

│ Error: Incompatible provider version
│ Provider registry.terraform.io/splunk/victorops v0.1.1 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.
pauldoomgov commented 2 years ago

Till they build for darwin_arm64, here are notes on building the module.

mkdir -p ~/go/src/github.com/splunk
cd ~/go/src/github.com/splunk
git clone git@github.com:splunk/terraform-provider-victorops.git
cd terraform-provider-victorops/
# Checkout the latest tagged version
git checkout v0.1.4
# x/sys that ships with go1.18 is busted - Upgrade it
got get -u golang.or/x/sys
go build
mkdir -p ~/.terraform.d/plugins/github.com/splunk/terraform-provider-victorops/0.1.4/darwin_arm64/
cp terraform-provider-victorops ~/.terraform.d/plugins/github.com/splunk/terraform-provider-victorops/0.1.4/darwin_arm64/

And then your provider block should look like:

terraform {
  required_providers {
    victorops = {
      source  = "splunk/victorops"
      version = "0.1.4"
    }
  }
}