Determine Your Terraform Host
Identify your Terraform instance URL based on your deployment type.
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.
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
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
Linking the Account from the Hub
Navigate to the Hub
Fill out the fields
- Terraform Host
- API Token
If the account linking is successful, you will see the newly linked account in your Accounts page.