Skip to main content
Admin or Owner privileges are required in your Terraform account to generate API tokens.

Determine Your Terraform Host

Identify your Terraform instance URL based on your deployment type.

1

Find Your Terraform Host URL

Your Terraform Host URL depends on whether you use Terraform Cloud or Terraform Enterprise.

  • Terraform Cloud - Use https://app.terraform.io
  • Terraform Enterprise - Use your self-hosted instance URL
  • Format: https://{your-instance}.example.com
  • Example: https://terraform.yourcompany.com

Generate an API Token

Create a user API token to authenticate with the Terraform API.

1

Navigate to Account Settings

Sign in to your Terraform Cloud account or your Terraform Enterprise instance.

  • Click your user icon in the top-right corner
  • Select Account settings
2

Access Token Settings

Navigate to the Tokens section.

  • Click Tokens in the left sidebar
3

Create a New Token

Generate a new API token for the StackOne integration.

  • Click Create an API token
  • Enter a description (e.g., “StackOne Integration”)
  • Choose an appropriate expiration date
  • Click Generate Token
4

Copy and Store the Token

Copy your new API token and store it securely for use later.

  • Copy the token from the dialog box immediately
  • Note: Terraform only displays the token once. If you lose it, you must revoke it and create a new one.

Linking the Account from the Hub

1

Navigate to the Hub

Use one of the three Linking Account Methods to access the Hub.
2

Fill out the fields

Fill out the following fields using details from your provider:
  • Terraform Host
  • API Token
3

Connect

  • Click Connect
  • If applicable, the provider will redirect you to a sign-in or authorization page. Complete the provider’s authorization flow.
  • Once authorization is successful, you will see a confirmation popup

If the account linking is successful, you will see the newly linked account in your Accounts page.