See the Meta Networks Provider documentation to get started using the provider.
Clone repository to: $GOPATH/src/github.com/mataneine/terraform-provider-metanetworks
$ mkdir -p $GOPATH/src/github.com/mataneine; cd $GOPATH/src/github.com/mataneine
$ git clone git@github.com:mataneine/terraform-provider-metanetworks
Enter the provider directory and build the provider
$ cd $GOPATH/src/github.com/mataneine/terraform-provider-metanetworks
$ make build
terraform {
required_providers {
metanetworks = {
source = "FabioAntunes/metanetworks"
version = "1.0.0-pre-2.4"
}
}
}
provider "metanetworks" {
org = "example_organization"
}
# Example resource configuration
resource "metanetworks_resource" "example" {
# ...
}
Enter the provider directory.
$ cd $GOPATH/src/github.com/mataneine/terraform-provider-metanetworks
To compile the provider, run make build
. This will build the provider and put the provider binary in the $GOPATH/src/github.com/mataneine/terraform-provider-metanetworks/bin
directory.
$ make build
To use it locally you can install this provider as plugin
$ cd $GOPATH/src/github.com/FabioAntunes/terraform-provider-metanetworks
$ make install
And then use it on your terraform:
provider "metanetworks" {
org = "example_organization"
}
terraform {
required_providers {
metanetworks = {
source = "localhost/FabioAntunes/metanetworks"
version = "1.0.0-pre-2.4"
}
}
}
# Example resource configuration
resource "metanetworks_resource" "example" {
# ...
}
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
.
Note: Acceptance tests create real resources, and often cost money to run.
$ make testacc