/terraform-provider-aviatrix

Aviatrix terraform frontend

Primary LanguageGoMozilla Public License 2.0MPL-2.0

Terraform Provider

A basic Terraform provider for Aviatrix. Read this tutorial as an alternative to the README.

Requirements

  • Install Terraform 0.10.x
  • Install Go 1.8 (This will be used to build the provider plugin.)
  • Create a directory, go, follow this doc to edit ~/.bash_profile to setup GOPATH)

Building The Provider

Clone repository to: $GOPATH/src/github.com/terraform-providers/terraform-provider-aviatrix

$ mkdir -p $GOPATH/src/github.com/terraform-providers 
$ cd $GOPATH/src/github.com/terraform-providers
$ git clone https://github.com/AviatrixSystems/terraform-provider-aviatrix

Enter the provider directory and build the provider

$ cd $GOPATH/src/github.com/terraform-providers/terraform-provider-aviatrix
$ make fmt
$ make build

Using Aviatrix Provider

Activate the provider by adding the following to ~/.terraformrc

providers {
  "aviatrix" = "$GOPATH/bin/terraform-provider-aviatrix"
}

Examples

Check examples here.