Ignitify.dev
ignitify_task
Terraform

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

app.tf
resource "ignitify_task" "report" {
  slug = "report"
}

Arguments and attributes

NameTypeUseMeaning
slugStringRequiredforces replacement · import idThe 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_atStringRead-onlyWhen the task was created (ISO 8601).
resource_idStringRead-onlyThe public resource id of the task.
task_idStringRead-onlyThe 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.

terminal
$ terraform import ignitify_task.report report