No description
  • Go 96%
  • Shell 1.2%
  • HCL 1%
  • HTML 1%
  • Python 0.6%
  • Other 0.2%
Find a file
2020-08-04 00:34:12 +00:00
.github/workflows Enable more linters, but only for last commit (#485) 2020-07-27 18:12:46 -07:00
aviatrix Use TypeList and dedup the policies before writing to state (#508) 2020-07-31 14:11:33 -07:00
docs Update docs for 2.16 - added missing references to periodic ping (#509) 2020-08-03 10:37:54 -07:00
examples Update doc links to new github (#32) 2019-09-10 18:31:39 -07:00
goaviatrix (16147) Add fqdn_pass_through resource (#492) 2020-07-27 18:19:04 -07:00
scripts Use go mod (#549) 2019-07-15 16:38:17 -07:00
test-infra Update test-infra (#497) 2020-07-28 14:51:18 -07:00
vendor (13777) Data source vpc_tracker (#420) 2020-06-16 16:49:17 -07:00
website Update docs for 2.16 - added missing references to periodic ping (#509) 2020-08-03 10:37:54 -07:00
.gitignore Added R2.0 Feature Test Matrix (#609) 2019-07-30 14:44:51 -07:00
.golangci.toml Enable more linters, but only for last commit (#485) 2020-07-27 18:12:46 -07:00
CHANGELOG.md Cleanup after v2.16.0 release 2020-08-04 00:34:12 +00:00
GNUmakefile Update acceptance test timeout to 10 hours 2020-04-01 11:48:18 -07:00
go.mod (13777) Data source vpc_tracker (#420) 2020-06-16 16:49:17 -07:00
go.sum (13777) Data source vpc_tracker (#420) 2020-06-16 16:49:17 -07:00
LICENSE Prepearing provider for terraform publishing. 2017-12-19 13:01:12 +00:00
main.go (11269): Migrate terraform provider plugin sdk instead of using the core (#201) 2019-12-09 14:34:44 -08:00
README.md Fix a previous rebase issue 2019-10-14 14:12:26 -07:00
version Release v2.16.0 (#503) 2020-08-02 21:34:55 -07:00

Terraform Provider

A basic Terraform provider for Aviatrix. Read this tutorial as an alternative to the README, only if the instructions are unclear.

-> NOTE: This release has a big structure change from release v1.*, please read this changelist-v2 first, and change your cloud infrastructures accordingly.

Requirements

  • Install Terraform 0.12.x (0.11.x or lower is incompatible)
  • Install Go 1.12+ (This will be used to build the provider plugin.)
  • Create a directory, go, follow this doc to edit ~/.bash_profile to setup the GOPATH environment variable)

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/terraform-providers/terraform-provider-aviatrix

To clone on windows

mkdir %GOPATH%\src\github.com\terraform-providers
cd %GOPATH%\src\github.com\terraform-providers
git clone https://github.com/terraform-providers/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

To build on Windows

cd %GOPATH%\src\github.com\terraform-providers\terraform-provider-aviatrix
go fmt
go install

Using Aviatrix Provider

Activate the provider by adding the following to ~/.terraformrc on Linux/Unix.

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

For Windows, the file should be at '%APPDATA%\terraform.rc'. Do not change $GOPATH to %GOPATH%.

In Windows, for terraform 0.11.8 and lower use the above text.

In Windows, for terraform 0.11.9 and higher use the following at '%APPDATA%\terraform.rc'

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

If the rc file is not present, it should be created

Examples

Check examples and documentation here

Visit here for the complete documentation for all resources on github

Controller version

Due to some non-backward compatible changes in REST API not all controller versions are supported. If you find a branch with the controller version please use that branch Controller versions older than 3.3 are not supported For example:

  • UserConnect-3.3 for 3.3.x controller version
  • UserConnect-3.4 for 3.4.x controller version

master branch supports latest controller version but please use the branch specific to your controller version. This is so that you do not go out of sync with the controller. (For instance, the master branch code may get updated to be only 4.2 compatible but your controller may still be running 4.1)

We also recommend you to update to the latest controller version to stay on top of fixes/features.