layout | page_title | sidebar_current | description |
---|---|---|---|
tfe |
Terraform Enterprise: tfe_workspace_task |
docs-datasource-tfe-workspace-task |
Get information on a Workspace Run task. |
Run tasks allow Terraform Cloud to interact with external systems at specific points in the Terraform Cloud run lifecycle. Run tasks are reusable configurations that you can attach to any workspace in an organization.
Use this data source to get information about a Workspace Run tasks.
data "tfe_workspace_run_task" "foobar" {
workspace_id = "ws-abc123"
task_id = "task-def456"
}
The following arguments are supported:
task_id
- (Required) The id of the run task.workspace_id
- (Required) The id of the workspace.
In addition to all arguments above, the following attributes are exported:
enforcement_level
- The enforcement level of the task.id
- The ID of the Workspace Run task.stage
- Which stage the task will run in.