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

# Terraform - How do I link my account?

## Overview

To authenticate with Terraform, you need:

1. **API Token** - A token that grants secure access to the API, enabling authorized applications to interact with Terraform resources and services.

This guide will walk you through generating the API Token within Terraform.

### Prerequisites:

* You must have a Terraform account.

### Instructions:

#### Step 1: Generating Your API Token

Generating an API Token [following Terraform's guide](https://developer.hashicorp.com/terraform/cloud-docs/users-teams-organizations/api-tokens#organization-api-tokens).

To generate an API Token from Terraform:

1. Log into [Terraform](https://app.terraform.io/)
2. Go to **Organization settings**.
3. In the security section of the sidebar select **API Tokens**.
4. Generate an **API Token** using the controls below the **Organization Tokens header**.

![](https://mintcdn.com/nango/or5YGi1-bk6KsSds/integrations/all/terraform/organization_settings.png?fit=max\&auto=format\&n=or5YGi1-bk6KsSds\&q=85\&s=f1db4becebda324ba5a73dbdcc8a866e)

#### Step 2: Enter credentials in the Connect UI

Once you have the **API Token**:

1. Open the form where you need to authenticate with Terraform.
2. Enter the **API Token** in the designated field.
3. Submit the form, and you should be successfully authenticated.

![](https://mintcdn.com/nango/or5YGi1-bk6KsSds/integrations/all/terraform/form.png?fit=max\&auto=format\&n=or5YGi1-bk6KsSds\&q=85\&s=9494057b6407a06b217abebdf27d02bc)

You are now connected to Terraform.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.