Skip to content

philips-software/terraform-provider-hsdp

Repository files navigation

HSDP Terraform provider

Overview

A Terraform provider to provision and manage state of various HSDP specific resources.

Important

This provider is not endorsed, supported or approved by HSDP. It is a Philips Open Source community managed project. Please do not raise SNOW tickets, instead open a issue on the Github project.

Using the provider

Terraform 1.5.5+: To install this provider, copy and paste this code into your Terraform configuration. Then, run terraform init.

terraform {
  required_providers {
    hsdp = {
      source = "philips-software/hsdp"
      version = ">= 0.47.0"
    }
  }
}

Development requirements

Building the provider

Clone repository somewhere:

$ git clone [email protected]:philips-software/terraform-provider-hsdp
$ cd terraform-provider-hsdp
$ go build .

Debugging the provider

You can build and debug the provider locally:

$ go build .
$ ./terraform-provider-hsdp -debug 
Provider started, to attach Terraform set the TF_REATTACH_PROVIDERS env var:

	TF_REATTACH_PROVIDERS='{"registry.terraform.io/philips-software/hsdp":{...}}}'

Copy the TF_REATTACH_PROVIDERS and run Terraform with this value set:

$ TF_REATTACH_PROVIDERS='...' terraform init -upgrade
$ TF_REATTACH_PROVIDERS='...' terraform plan
...

Terraform will now use the local running copy instead of the philips-software/hsdp registry version. Happy debugging!

Issues

If you have found an issue, please report it on the issue tracker

LICENSE

License is MIT