davidji99 / terraform-provider-ultradns

Terraform UltraDNS provider
https://registry.terraform.io/providers/davidji99/ultradns/latest
Mozilla Public License 2.0
0 stars 0 forks source link

Terraform Provider

Requirements

Building The Provider

Clone repository in HOME directory

$ git clone https://github.com/terraform-providers/terraform-provider-ultradns.git terraform-provider-ultradns

Enter the provider directory and build the provider

$ go mod tidy
$ go mod vendor
$ make fmt
$ go build -o terraform-provider-ultradns

Using the provider

Fill in for each provider

Developing the Provider

If you wish to work on the provider, you'll first need Go installed on your machine (version 1.14+ is required). You'll also need to correctly setup a GOPATH, as well as adding $GOPATH/bin to your $PATH.

To compile the provider, run go build -o terraform-provider-ultradns. This will build the provider and put the provider binary in current directory.

In order to test the provider, you can simply run make test.

$ make test

In order to run the full suite of Acceptance tests, run make testacc.

$ cp terraform-provider-ultradns ${terraform_plugin_directory}/plugins
$ export TF_VAR_ULTRADNS_USERNAME='***********'
$ export TF_VAR_ULTRADNS_PASSWORD='***********'
$ export TF_VAR_ULTRADNS_BASEURL='https://api.ultradns.com'
$ export TF_VAR_ULTRADNS_DOMAINNAME='Domain Name'
$ make testacc

In order to add the compiled plugin to terraform, you can simply run the following: