- Print
- DarkLight
Terraform is used primarily by teams to automate various infrastructure tasks in code. Using teraform, infrastructure changes, updates and configurations is repeatable, trackable and consistent. Terraform, created by HashiCorp, is cloud-agnostic and open-sourced.
Setup and Configure
To use Terraform API, you need bearer token and organization name.
To create API credentials, follow the steps below.
Log in to Terraform.
Select + Create organization.
In the “Create a new organization” page, enter your organization name which satisfies the mentioned criteria.
Click on Create organization.
Navigate to the “Organizations” page and select the organization name.
Select Settings from the left sidebar.
Scroll down and select API tokens.
Under ‘User Tokens’, click on account settings page.
Click on Create an API token button.
Enter a meaningful token description under the 'Description' field. From the 'Expiration' dropdown menu, select the token expiration time as No expiration.
Click on the Generate token button.
You can find your token here. Note that once the token is generated, please copy and store it somewhere as it won’t be populated again.
While configuring the Terraform data source in Databee UI, select the Bearer Token option from the 'Authorization Method' dropdown. Provide the above-generated token in the 'Token' text box.