Skip to content

volterraedge/terraform-provider-volterra

Repository files navigation

Terraform Provider for Volterra

Terraform provider for managing your Volterra resources.

Requirements


  • Terraform >= 0.13.x
  • Go >= 1.16 (to build the provider plugin)

Building The Provider


Checkout the repository using below command:

$ git clone https://github.com/volterraedge/terraform-provider-volterra.git

Enter the provider directory and build the provider:

$ cd terraform-provider-volterra
$ cd cmd/terraform-provider-volterra; go build .

Using the provider


Released provider version

Run terraform init and terraform will automatically install the provider.

To specify a particular provider version when installing released providers, see the Terraform documentation on provider versioning.

Custom built provider in your Terraform environment

Run below command

make install-tf-volterra

Examples

Check out the examples located

Running Unit Tests


Execute below command to run all unit tests

$ go test -v ./...

To execute unit test, use -run flag

$ go test -v -run=TestAccNamespaceBasic ./...