Note: You may use any version 1.8 or above to build the provider. However, the
go vet, and
gofmt code checks will only pass when using version 1.11.
Clone repository to:
$ mkdir -p $GOPATH/src/github.com/terraform-providers; cd $GOPATH/src/github.com/terraform-providers $ git clone [email protected]:terraform-providers/terraform-provider-oci
Enter the provider directory and build the provider
$ cd $GOPATH/src/github.com/terraform-providers/terraform-provider-oci $ make build
If you're building the provider, follow the instructions to install it as a plugin.
After placing it into your plugins directory, run
terraform init to initialize it and begin using Terraform with the Oracle Cloud Infrastructure provider.
See verbose logging for the details.
Compile the provider by running
make build. The provider binary will output to your
$GOPATH/bin directory, make sure this has been added to your
$ make build
To test the provider run
$ make testacc
Note: The tests run against live OCI service APIs, you will need to configure environment variables with valid credientials as shown in the documentation.