> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Terraform Cloud

> Terraform is an infrastructure as code tool that lets you build, change, and version cloud and on-prem resources safely and efficiently. Blink supports both Terraform CLI and Terraform Cloud API.

## Creating a Terraform connection

To create the connection you need:

* A Terraform token
* A Terraform address

### Obtaining the credentials

1. Go to [Terraform Cloud by HashiCorp](https://app.terraform.io/app/settings/tokens).

2. Click **Create an API token**.

   <img src="https://mintcdn.com/blinkops-2/gXVhdwN-st8--W_M/img/Terraform/terraform_create_token.png?fit=max&auto=format&n=gXVhdwN-st8--W_M&q=85&s=7798d15f821bb06f3cac9c866c6d2470" alt="Create An API Token" width="1532" height="678" data-path="img/Terraform/terraform_create_token.png" />

3. Add a description to you token and click **Generate Token**.

   <img src="https://mintcdn.com/blinkops-2/gXVhdwN-st8--W_M/img/Terraform/terraform_token.png?fit=max&auto=format&n=gXVhdwN-st8--W_M&q=85&s=951d13d239b67c61e732522e5696d811" alt="Create API Token" width="601" height="340" data-path="img/Terraform/terraform_token.png" />

4. Copy and securely save the newly created **token**.

   <img src="https://mintcdn.com/blinkops-2/gXVhdwN-st8--W_M/img/Terraform/token.png?fit=max&auto=format&n=gXVhdwN-st8--W_M&q=85&s=f7912c98a6cee244018b841cdee5b68d" alt="Copy API Token" width="1146" height="447" data-path="img/Terraform/token.png" />

### Creating your connection

1. In the Blink platform, navigate to the **Connections** page > **Add connection**. A New Connection dialog box opens displaying icons of external service providers available.

2. Select the **Terraform** icon. A dialog box with name of the connection and connection methods appears.

3. (Optional) Edit the name of the connection. At a later stage you cannot edit the name.

4. Select **API Token** as the method to create the connection.

5. Fill in the parameters:

   * The Terraform token
   * The Terraform address

6. (Optional) Click **Test Connection** to test it.

7. Click **Create connection**. The new connection appears on the **Connections** page.
