ignitify_task
A task: the name its code is deployed and run under. Needs tasks.read and tasks.write. The code comes from ignitify_deployment.
Example
resource "ignitify_task" "report" {
slug = "report"
}Arguments and attributes
| Name | Type | Use | Meaning |
|---|---|---|---|
slug | String | Requiredforces replacement · import id | The task slug. 1 to 63 lower case letters, digits and -, starting and ending with a letter or digit. It must equal the slug in the task config of the folder you deploy. |
created_at | String | Read-only | When the task was created (ISO 8601). |
resource_id | String | Read-only | The public resource id of the task. |
task_id | String | Read-only | The server id of the task. |
Behaviour
- A create on the slug of a live task fails with
task-slug-taken. To manage an existing task, import it. - A destroy deletes the task with its deployments, runs, hooks and recurring schedules.
- Creating the same slug again brings back the same task, without those objects.
Import
The import id is the task slug.
$ terraform import ignitify_task.report report