Terraform
Follow these steps to connect Terraform via the StackOne Hub successfully.
Ensure you have Admin or Owner privileges within your Terraform account.
If you’ve been directed to StackOne to integrate with Terraform, the following steps will help you understand the process and any necessary actions to configure successful integration.
Get Your Terraform Organization Name
Find Organization Name
Each connected Account with StackOne will be associated with one Terraform Organization.
While logged in to your Terraform instance, your Organization Name is visible in the top left corner before the current Workspace.
Your Organization Name also exists in the URL. Example: https://app.terraform.io/app/{{Organization Name}}/workspaces
![Organization Name](https://mintlify.s3-us-west-1.amazonaws.com/stackone-hub/images/terraform/image1.png)
Get Your Terraform API Token
Open Account Settings
Click your profile icon in the top left, then click Account settings.
![Account Settings](https://mintlify.s3-us-west-1.amazonaws.com/stackone-hub/images/terraform/image2.png)
Navigate to Tokens
Click Account settings > Tokens on the left.
![Tokens](https://mintlify.s3-us-west-1.amazonaws.com/stackone-hub/images/terraform/image3.png)
Create API Token
Under Tokens, click the Create an API token button.
![Create API Token](https://mintlify.s3-us-west-1.amazonaws.com/stackone-hub/images/terraform/image4.png)
Enter Token Details
Under Creating a user token, enter a Description and your desired Expiration, then click the Generate token button.
![Token Details](https://mintlify.s3-us-west-1.amazonaws.com/stackone-hub/images/terraform/image5.png)
Copy API Token
Copy your displayed Token and store it safely.
![Copy API Token](https://mintlify.s3-us-west-1.amazonaws.com/stackone-hub/images/terraform/image6.png)
Connecting with StackOne
Enter API Token and Organization Name
Upon reaching the Link Account page, enter your API Token and Organization Name from the previous steps.
Connect
Proceed by clicking the Connect button.
Congratulations, you’re all set! If you face any issues with the steps mentioned above, please contact us by emailing integrations@stackone.com. We’re always here to assist you!
Available data
This integration has the following IAM Resources available from the provider:
- Users
- Roles
- Groups
- Policies