This repo is Deprecated please use https://github.com/terraform-providers/terraform-provider-bigip
A Terraform provider for F5 BigIP LTM.
- Mailing list: Google Groups
- This provider uses the iControlREST API, make sure that it is installed and enabled on your F5 device before proceeding.
- All the resources are validated with BigIP v12.1.1
Provider documentation and reference can be found here.
Install appropriate Go package from https://golang.org/dl/ make sure your go version is 1.9 & above
go version
go version go1.9.2 darwin/amd64
mkdir workspace
export GOPATH=$HOME/workspace
mkdir -p $GOPATH/src/github.com/f5devcentral
cd $GOPATH
go get github.com/f5devcentral/terraform-provider-bigip
cd src/github.com/f5devcentral/terraform-provider-bigip/
go build
create .tf
terraform init
Initializing provider plugins...
Terraform has been successfully initialized!
You may now begin working with Terraform. Try running "terraform plan" to see
any changes that are required for your infrastructure. All Terraform commands
should now work.
If you ever set or change modules or backend configuration for Terraform,
rerun this command to reinitialize your working directory. If you forget, other
commands will detect it and remind you to do so if necessary.
Create the distributable packages like so:
make get-deps && make bin && make dist
See these pages for more information:
- https://www.terraform.io/docs/internals/internal-plugins.html
- https://github.com/hashicorp/terraform#developing-terraform
Running the acceptance test suite requires an F5 to test against. Set BIGIP_HOST
, BIGIP_USER
and BIGIP_PASSWORD
to a device to run the tests against. By default tests will use the Common
partition for creating objects. You can change the partition by setting BIGIP_TEST_PARTITION
.
BIGIP_HOST=f5.mycompany.com BIGIP_USER=foo BIGIP_PASSWORD=secret make testacc
Read here for more information about acceptance testing in Terraform.