dustindortch/Set TFC/TFE variable
Create or update a TFC/TFE workspace variable.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| hostname | The hostname of a Terraform Enterprise installation, if using Terraform Enterprise. Defaults to HCP Terraform (app.terraform.io) if `TF_HOSTNAME` environment variable is not set. | no | app.terraform.io |
| token | The token used to authenticate with HCP Terraform. Defaults to reading `TF_API_TOKEN` environment variable. | no | "" |
| organization | The name of the organization in HCP Terraform. Defaults to reading `TF_CLOUD_ORGANIZATION` environment variable. | no | "" |
| category | Whether this is a Terraform or environment variable. Valid values are "terraform" or "env". | — | terraform |
| hcl | Whether to evaluate the value of the variable as a string of HCL code. Has no effect for environment variables. | — | false |
| sensitive | Whether the value is sensitive. If true then the variable is written once and not visible thereafter. | — | false |
| value | The value of the workspace variable. | no | "" |
| workspace_id | The ID of the workspace of the variable. | yes | — |
| name | The name of the workspace variable. | yes | — |
Outputs
| name | description |
|---|---|
| status | The result of the operation. Possible values are `Success`, `Error` or `Timeout` |