tfe_organization_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_organization_run_task resource creates, updates and destroys Organization Run tasks.

Example Usage

Basic usage:

resource "tfe_organization_run_task" "example" {
  organization = "org-name"
  url          = "https://external.service.com"
  name         = "task-name"
  enabled      = true
  description  = "An example task"
}

Argument Reference

The following arguments are supported:

Attributes Reference

Import

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

terraform import tfe_organization_run_task.test my-org-name/task-name