---
title: "Configuring Infoblox IPAM Plug-In Version 1.1.1 for Terraform"
canonical: "https://docs.infoblox.com/space/ipamdriverterraform/53023265/Configuring%20Infoblox%20IPAM%20Plug-In%20Version%201.1.1%20for%20Terraform"
format: markdown
---
<span style="color: #000000">Terraform relies on an Infoblox provider to interact with Infoblox NIOS Grid objects. You must configure Infoblox as a provider before you can perform the operations described in this document. This topic includes the following sections:</span>

- <span style="color: #000000">Configuring the Provider Authentication</span>
- <span style="color: #000000">Supported Functions and Limitations of the Provider</span>

# <span style="color: #000000">Configuring the Provider Authentication</span>

<span style="color: #000000">You must configure the provider with correct credentials before you can use it to interact with Infoblox NIOS Grids. You can use any of the supported methods for configuring the credentials required for authentication are as follows:</span>

- <span style="color: #000000">Static Credentials</span>
- <span style="color: #000000">Environment Variables</span>

<span style="color: #000000">For more information, refer to the </span><span style="color: #000000">*[Infoblox NIOS documentation](https://infoblox-docs.atlassian.net/wiki/spaces/ILP/pages/15433773)*</span><span style="color: #000000">. </span>

## <span style="color: #000000">Static Credentials</span>

<span style="color: #000000">You can provide static credentials by adding the specified attributes inline in the provider block of the Terraform configuration file.</span>

#### <span style="color: #000000">Example:</span>

```
provider "infoblox"
{
  version="~> 1.1.1"
  username="<nios_username>"
  password="<nios_password>"
  server="<nios_ip-addr-or-hostname>"
}
```

> ⚠️ **Note**
> ⚠️ 
> ⚠️ - <span style="color: #000000">For security reasons, Infoblox recommends that you configure the credentials to access the NIOS Grid as environment variables rather than static credentials.</span>
> ⚠️ - <span style="color: #000000">When you specify the plug-in's version in the provider block, Terraform automatically installs the published plug-in available in the Terraform Registry directory.</span>

## <span style="color: #000000">Environment Variables</span>

<span style="color: #000000">You can configure your credentials using the INFOBLOX_USERNAME, INFOBLOX_PASSWORD, and INFOBLOX_SERVER environmental variables, that corresponds to your user name, password, and server respectively.</span>

#### <span style="color: #000000">Example:</span>

<span style="color: #000000">$ export INFOBLOX_USERNAME="<nios_username>"</span>  
<span style="color: #000000">$ export INFOBLOX_PASSWORD="<nios_password>"</span>  
<span style="color: #000000">$ export INFOBLOX_SERVER="<nios_ip-addr or nios_hostname>"</span>

# <span style="color: #000000">Supported Operations and Limitations of the Infoblox Provider</span>

<span style="color: #000000">The supported functions and limitations of the Infoblox provider are as follows:</span>

- <span style="color: #000000">The provider supports only create, read, and delete operations for networks and CIDRs. The update operation is not supported.</span>
- <span style="color: #000000">The provider supports create, read, and delete operations on A, PTR, and CNAME records. </span>
- <span style="color: #000000">The provider allows only creation of network views. Deletion of network views is not supported.</span>
- <span style="color: #000000">If you are using the Infoblox provider with other providers to allocate IP addresses to virtual machines, use the ip_allocation and ip_association resource blocks to perform the operation. See the </span><span style="color: #000000">*[Examples](https://github.com/terraform-providers/terraform-provider-infoblox/tree/master/examples)*</span><span style="color: #000000"> for using the Infoblox provider.</span>
- <span style="color: #000000">If you are not using other providers with the Infoblox provider, then use only the ip_allocation block to allocate IP addresses. The ip_allocation block supports create, read, update, and delete operations.</span>
- <span style="color: #000000">Use the ip_allocation block to create either a reservation, a fixed address, or a host record. To create a host record, see the </span><span style="color: #000000">*[ip_allocation](https://www.terraform.io/docs/providers/infoblox/r/ip_allocation.html)*</span><span style="color: #000000"> resource documentation for detailed instructions.</span>
- <span style="color: #000000">If you are not using other providers with the Infoblox provider to deploy virtual machines and allocate IP addresses from NIOS, then ignore the ip_association block. The ip_association block is used to update the properties of virtual machines.</span>