Private Terraform Provider Registry For GoLang

Share Your Love

In this post, you will learn about the GitHub repository Private Terraform Provider Registry.

Test With curl:

$ curl http://localhost:8080/terraform/providers/v1/hashicorp/hashicups/versions

http://127.0.0.1:8080/terraform/providers/v1/hashicorp/hashicups/versions

http://127.0.0.1:8080/terraform/providers/v1/hashicorp/hashicups/0.3.2/download/darwin/amd64
{
  id: "hashicorp/hashicups",
  versions: [{
    version: "0.3.1",
    protocols: [
      "5.0"
    ],
    platforms: [{
      os: "freebsd",
      arch: "386"
    }
  ]}]
}

With terraform

terraform {
  required_providers {
    hashicups = {
      source = "localhost:8081/hashicorp/hashicups"
      version = "0.3.1"
    }
  }
}

provider "hashicups" {
  # Configuration options
}
# we do this because the registry ssl cert is not using a SAN or something
$ export GODEBUG=x509ignoreCN=0
$ terraform init

GitHub

Source: View Github If you find anything incorrect then contact us.

Share Your Love
Default image
Lingaraj Senapati

Hey There! I am Lingaraj Senapati, the Co-founder of lingarajtechhub.com My skills are Freelance, Web Developer & Designer, Corporate Trainer, Digital Marketer & Youtuber.

Articles: 345

Newsletter Updates

Enter your email address below to subscribe to our newsletter