F5 Programmability Training > Automation Mini Classes > Mini Class 2 - Getting Started with F5 Terraform > Module – Installing GO package, Terraform and the BIG-IP Provider Source | Edit on

Build F5 BIG-IP Provider

Please follow the instructions provided by the instructor to start your lab and access your jump host.

Expected time to complete: 15 mins

This class covers the following topics:

  1. Open terminal on the Client/Jumpbox VM and execute:

    go version
    
  2. Change to f5student’s home directory:

    cd
    
  3. Create a directory workspace from the home directory:

    mkdir workspace
    
  4. Change GOPATH to reference the workspace:

    export GOPATH=$HOME/workspace
    
  5. Create directories as shown below as a placeholder for the repository:

    mkdir -p $GOPATH/src/github.com/f5devcentral
    
  6. Change the directory to workspace:

    cd $GOPATH
    
  7. Get the F5 BIG-IP Terraform provider code from github as shown:

    go get github.com/f5devcentral/terraform-provider-bigip
    
  8. Change directory to the provider directory:

    cd src/github.com/f5devcentral/terraform-provider-bigip/
    
  9. Build the F5 BIG-IP Terraform Provider binary:

    go build
    
  10. Create TF file named master.tf using any editor. Insert the following content into it:

    provider "bigip" {
        address = "10.1.1.246"
        username = "admin"
        password = "admin"
    }
    
  11. Now initialize the bigip provider plugin:

    terraform init
    
    Initializing provider plugins...
    
    Terraform has been successfully initialized!
    

Note

For step 4, you can use the go env command to see the output

Note

For step 9, you can use the ls -lrt command to see that terraform-provider-bigip is created

Note

All work for this lab will be performed exclusively from the Windows jumphost. No installation or interaction with your local system is required.