---
title: "Installing and Authenticating With the Infoblox Terraform Provider"
canonical: "https://docs.infoblox.com/space/DeploymentGuideTerraformNIOSProvider/807896382/Installing%20and%20Authenticating%20With%20the%20Infoblox%20Terraform%20Provider"
format: markdown
---
In Terraform version 1.8.1 and later, a required providers block, which must be nested inside a terraform block, is required to install the Infoblox provider (and most other providers). The following is an example of a required providers block to install the Infoblox provider v2.7.0: 

```json
terraform {  
  required_providers {    
    infoblox = {      
      source = "infobloxopen/infoblox"      
      version = "2.7.0"       
  }
 }
}
```

The terraform block containing the required providers block can be followed by a provider block to pass additional configuration for the provider such as credentials. The following is an example of a provider block for Infoblox: 

```json
provider "infoblox" {
  username = "admin" 
  password = "password" 
  server = "<your_grid_IP>" 
} 
```

The server, username, and password arguments specify the Infoblox credentials which will be used when provisioning and deprovisioning resources in your Infoblox Grid.

 If you do not want to include credentials in your Terraform configuration file for Infoblox, they can be stored as environmental variables on your system instead. For example, you can make these credentials available on Linux and macOS systems using the following commands in your terminal:

`export INFOBLOX_USERNAME="admin"`  
`export INFOBLOX_PASSWORD="password"`  
`export INFOBLOX_SERVER="<your_grid_IP>"`

When you export the credentials as shown above, you can omit them from your provider block.