terraform
How to get these credentialsHCP Terraform or Terraform Enterprise API token (user, team or organization token), the API hostname and the default organization.
CREATE SECRET terraform (
TYPE terraform,
token '<TERRAFORM_TOKEN>', -- secret
hostname '<hostname>',
organization '<organization>',
base_url '<base_url>'
);
| Key | Type | Required | Description |
|---|---|---|---|
| token secret | VARCHAR | — | API token: a user, team or organization token from HCP Terraform / Terraform Enterprise, sent as 'Authorization: Bearer <token>'. Required. Read-only use: the worker only sends GET requests. |
| hostname | VARCHAR | — | API hostname, default app.terraform.io (HCP Terraform). Set it to your Terraform Enterprise host, e.g. tfe.example.com. |
| organization | VARCHAR | — | Organization used when a function's organization := argument is omitted, and by the unified tables. |
| base_url | VARCHAR | — | Full base URL overriding HOSTNAME, e.g. http://127.0.0.1:8080 for a local mirror or a TFE instance on a non-standard port. The API path /api/v2 is appended. |
The worker doesn't mark which keys are required.
Needed by agent_poolsagentsappliesassessmentscost_estimatesnotification_configurationsplanspolicy_checkspolicy_evaluationsprojectsregistry_modulesregistry_providers and 10 more functions