Skip to content

Managed secret providers

Terraform

Connect Terraform to Alter Vault for secure API access

Use Terraform credentials to make authenticated API calls through Alter Vault without exposing API keys in code.

PropertyValue
Provider IDterraform
CategoryDeveloper Tools
Credential TypeBearer Token

Log in to HCP Terraform

Log in to HCP Terraform at app.terraform.io.

Go to User Settings → Tokens

Go to User Settings → Tokens at app.terraform.io/app/settings/tokens.

Create an API token

Click ‘Create an API token’.

Copy your token

Copy the generated token.

Open the Developer Portal

Go to portal.alterauth.com and navigate to the application.

Add Terraform

Go to Managed Secrets > Add Provider > Terraform.

Enter credentials

Paste your API Token into the credential field.

Save

Click Save. You’ll receive a grant_id to use with the SDK.

response = await alter_app.request(
HttpMethod.GET,
"https://app.terraform.io/api/v2/organizations",
grant_id="YOUR_GRANT_ID",
)