tfe_workspace_run_task

Run tasks allow HCP Terraform to interact with external systems at specific points in the HCP Terraform run lifecycle. Run tasks are reusable configurations that you can attach to any workspace in an organization.

The tfe_workspace_run_task resource associates, updates and removes Workspace Run tasks.

Example Usage

Basic usage:

resource "tfe_workspace_run_task" "example" {
  workspace_id      = resource.tfe_workspace.example.id
  task_id           = resource.tfe_organization_run_task.example.id
  enforcement_level = "advisory"
}

Argument Reference

The following arguments are supported:

Attributes Reference

Import

Run tasks can be imported; use <ORGANIZATION>/<WORKSPACE NAME>/<TASK NAME> as the import ID. For example:

terraform import tfe_workspace_run_task.test my-org-name/workspace/task-name