Skip to content

Latest commit

 

History

History
52 lines (38 loc) · 1.58 KB

organization_run_task.html.markdown

File metadata and controls

52 lines (38 loc) · 1.58 KB
layout page_title sidebar_current description
tfe
Terraform Enterprise: tfe_organization_run_task
docs-resource-tfe-organization-run-task
Manages Run tasks.

tfe_organization_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.

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:

  • 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.

Attributes Reference

  • id - The ID of the task.

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