Skip to content

Instantly share code, notes, and snippets.

@jaymcgrath
Last active November 9, 2020 01:53
Show Gist options
  • Save jaymcgrath/8c29c0fd76c5b44c0d9f250e5963388f to your computer and use it in GitHub Desktop.
Save jaymcgrath/8c29c0fd76c5b44c0d9f250e5963388f to your computer and use it in GitHub Desktop.
Building and installing newrelic terraform provider locally (macOS)

Versions.tf:

terraform {
  required_providers {
    newrelic = {
      version = "~> 99.0.0"
      source = "newrelic/newrelic"
    }
  }
  required_version = ">= 0.13"
}
go build -o ~/.terraform.d/plugins/registry.terraform.io/newrelic/newrelic/99.0.0/darwin_amd64/terraform-provider-newrelic_v99.0.0

This will build the plugin and install it locally with a very high version (99.0). This will ensure that it always supercedes the current version in the terraform registry

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment