If you wish to work on the provider, you'll first need Go installed on your machine (see Requirements below).
To generate or update documentation, run go generate
(or make docs
).
- Clone the repository
- Enter the repository directory
- Build the provider using the Go
install
command:
To compile the provider, run go install
. This will build the provider and put the provider binary in the $GOPATH/bin
directory.
To manually test the provider (e.g. using the provider with your own Terraform configuration), run make build
, which runs go install
but also produces a ~/.terraformrc
that enables the Terraform CLI to use the local build version.
To run the full suite of Acceptance tests, use one of the available Makefile targets:
make testacc
make testacc_debug
make testacc_trace
To run a specific test, set TESTARGS
:
TESTARGS="-run=TestAccResourceServiceVCL" make testacc
NOTE: Acceptance tests create real resources, and often cost money to run.
We use tflog.Debug()
for describing important operational details like milestones in logic. It often describes behaviors that may be confusing even though they are correct.
We use tflog.Trace()
for describing the lowest level operational details, such as intra-function steps or raw data and errors.