layout | page_title | sidebar_current | description |
---|---|---|---|
tfe |
Terraform Enterprise: tfe_organization_run_task |
docs-resource-tfe-organization-run-task |
Manages Run tasks. |
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.
The tfe_organization_run_task resource creates, updates and destroys Organization Run tasks.
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"
}
The following arguments are supported:
category
- (Optional) The type of task.enabled
- (Optional) Whether the task will be run.description
- (Optional) A short description of the the task.hmac_key
- (Optional) HMAC key to verify run task.name
- (Required) Name of the task.organization
- (Required) Name of the organization.url
- (Required) URL to send a run task payload.
id
- The ID of the task.
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