---
title: "Configuring Infoblox IPAM Plug-In for Terraform"
canonical: "https://docs.infoblox.com/space/ipamdriverterraform/53121314/Configuring%20Infoblox%20IPAM%20Plug-In%20for%20Terraform"
format: markdown
---
<span style="color: #3e3f40">Terraform relies on an Infoblox provider to interact with NIOS Grid objects. </span><span style="color: #000000">You can either use the published Infoblox provider (Infoblox IPAM Plug-In for Terraform) available on the </span>[*<span style="color: #000000">Terraform Registry</span>*](https://registry.terraform.io/providers/infobloxopen/infoblox/latest)<span style="color: #000000"> page or develop a plug-in with features that are not available in the published plug-in.</span>

<span style="color: #000000">As a prerequisite, configure provider authentication to set up the required access permissions for Terraform to interact with NIOS Grid objects. Additionally, declare the version of IPAM Plug-In for Terraform in the .tf file to allow Terraform to automatically install the published plug-in available in the Terraform Registry.</span>

<span style="color: #3e3f40">To configure IPAM Plug-In for Terraform for use, complete the following steps:</span>

1. <span style="color: #3e3f40">In the .tf file, specify the plug-in version in the </span>`required_providers`<span style="color: #3e3f40"> block as follows:</span>  
`terraform {`  
` required_providers {`  
`  infoblox = {`  
`    source = ''infobloxopen/infoblox''`  
`    version = ">=`` 2.7.0``"`  
`  }`  
` }`  
`}`
2. <span style="color: #3e3f40">Configure the credentials required to access the NIOS Grid as environment variables:</span>  
`$ export INFOBLOX_SERVER=<nios_ip-addr or nios_hostname>`  
`$ export INFOBLOX_USERNAME=<nios_username>`  
`$ export INFOBLOX_PASSWORD=<nios_password>`
3. <span style="color: #3e3f40">Add other environment variables that you intend to use.</span>  
<span style="color: #3e3f40">You can set the following environment variables instead of defining them as attributes inside the </span>`provider`<span style="color: #3e3f40"> block in the .tf file. Each of these environment variables has a corresponding attribute in the </span>`provider`<span style="color: #3e3f40"> block.</span>
  - <span style="color: #3e3f40">PORT</span>
  - <span style="color: #3e3f40">SSLMODE</span>
  - <span style="color: #3e3f40">CONNECT_TIMEOUT</span>
  - <span style="color: #3e3f40">POOL_CONNECTIONS</span>
  - <span style="color: #3e3f40">WAPI_VERSION</span>
4. <span style="color: #3e3f40">Run the </span>`terraform init`<span style="color: #3e3f40"> command in the directory where the .tf file is located to initialize the plug-in.</span>