If you wish to work on the provider, you'll first need Go installed on your machine (please check the requirements before proceeding).
Note: This project uses Go Modules making it safe to work with it outside of your existing GOPATH. The instructions that follow assume a directory in your home directory outside of the standard GOPATH (i.e $HOME/development/terraform-providers/
).
Clone repository to: $HOME/development/terraform-providers/
$ git clone [email protected]:iwarapter/terraform-provider-pingaccess.git
...
To compile the provider, run make build
. This will build the provider and put the provider binary in the local directory.
$ make build
...
$ terraform-provider-pingaccess
...
To use a released provider in your Terraform environment, download the latest version from https://github.com/iwarapter/terraform-provider-pingaccess/releases and follow the instructions to install it as a plugin. After placing it into your plugins directory, run terraform init
to initialize it.
In order to test the provider, you can run make test
.
$ make test
This will run the acceptance tests by initializing a local docker container to execute the functional tests against.