> ## Documentation Index
> Fetch the complete documentation index at: https://nango-marcin-get-deployments-docs.mintlify.site/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**.

<img src="https://mintcdn.com/nango-marcin-get-deployments-docs/SA2Km1Mnz5zcbziZ/integrations/all/terraform/organization_settings.png?fit=max&auto=format&n=SA2Km1Mnz5zcbziZ&q=85&s=9f0b1aed062b41e469f1dcf12fd1b299" style={{maxWidth: "450px" }} width="1646" height="1398" data-path="integrations/all/terraform/organization_settings.png" />

#### 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.

<img src="https://mintcdn.com/nango-marcin-get-deployments-docs/SA2Km1Mnz5zcbziZ/integrations/all/terraform/form.png?fit=max&auto=format&n=SA2Km1Mnz5zcbziZ&q=85&s=c97ce086db435ee040c0e8df9f9654f0" style={{maxWidth: "450px" }} width="773" height="1283" data-path="integrations/all/terraform/form.png" />

You are now connected to Terraform.
