---
title: "Building the Infoblox IPAM Plug-In Version 1.1.1 for Terraform"
canonical: "https://docs.infoblox.com/space/ipamdriverterraform/53121404/Building+the+Infoblox+IPAM+Plug-In+Version+1.1.1+for+Terraform"
format: markdown
---
The Infoblox IPAM Plug-In for Terraform helps to integrate Terraform environment with NIOS appliances. To use the plug-in**,** build the provider and install it as a plug-in.

To develop the provider and ensure it is set up correctly, complete the following prerequisites:

1. Install Go client version 1.12 or later on your appliance.
2. Run the following commands to set up `GOPATH` and `GOROOT`, create an `infobloxopen` directory, and then clone the git repository as follows:  
`GOPATH=`go env GOPATH``  
`mkdir -p $GOPATH/src/github.com/infobloxopen`  
`cd $GOPATH/src/github.com/infobloxopen`  
`git clone ``https://github.com/infobloxopen/terraform-provider-infoblox.git`  
`cd terraform-provider-infoblox`
3. Fetch the Infoblox Terraform Provider from GitHub[.](https://github.com/terraform-providers/terraform-provider-digitalocean) Once you fetch the Provider, the infoblox.tf and vm.tf files will be available in the VMware and Azure folder.
  - infoblox.tf: This folder contains the Infoblox resource information, and these resource details contain the Infoblox Server credentials and resource records like A, PTR, and CNAME. The main purpose of the Infoblox Terraform Provider is to allocate the IP address to the virtual machine.
  - vm.tf: This folder includes resource information for Azure or VMware. Azure resource information such as Tenant ID, and VMware resources such as server details, the hardware such as Ubuntu, where the resource details are deployed. virtual machine properties are listed. In this directory, the IPV4 field defines how to access an IP address from Infoblox.tf to make NIOS records accessible until the virtual machine is assigned an IP address.

To build the Infoblox IPAM Plug-In for Terraform, complete the following steps:

1. <span style="color: #3e3f40">Run the </span>`export GOFLAGS=-mod=vendor`<span style="color: #3e3f40"> command to set the environment variables.</span>
2. <span style="color: #3e3f40">Run the </span>`make build`<span style="color: #3e3f40"> command to compile and build the provider.</span>
3. <span style="color: #3e3f40">Run the </span>`cp -r terraform-provider-infoblox ~/.terraform.d/plugins/ `<span style="color: #3e3f40">path command to copy the Infoblox Terraform binary manually and build the plug-in.</span>
4. <span style="color: #3e3f40">Run the </span>`terraform init`<span style="color: #3e3f40"> command in the directory where the </span>**<span style="color: #3e3f40">.tf</span>**<span style="color: #3e3f40"> file is created to initialize the plug-in.</span>