Skip to content

Latest commit

 

History

History
66 lines (50 loc) · 2.25 KB

library_template_task.md

File metadata and controls

66 lines (50 loc) · 2.25 KB
page_title subcategory description
morpheus_library_template_task Resource - terraform-provider-morpheus
Provides a Morpheus library template task resource

morpheus_library_template_task

Provides a Morpheus library template task resource

Example Usage

Creating the library template task using a file template data source:

data "morpheus_file_template" "example_file_template" {
  name = "My file template"
}

resource "morpheus_library_template_task" "tf_example_library_template_task" {
  name                = "Example Terraform Library Template Task"
  code                = "tf-example-library-template-task"
  labels              = ["demo", "library", "terraform"]
  execute_target      = "resource"
  file_template       = data.morpheus_file_template.example_file_template.name
  file_template_id    = data.morpheus_file_template.example_file_template.id
  retryable           = true
  retry_count         = 1
  retry_delay_seconds = 10
  allow_custom_config = true
}

Schema

Required

  • name (String) The name of the library template task

Optional

  • allow_custom_config (Boolean) Custom configuration data to pass during the execution of the library template
  • code (String) The code of the library template task
  • execute_target (String) The target for the library template
  • file_template (String) The name of the library file template in Morpheus
  • file_template_id (String) The library file template id in Morpheus
  • labels (Set of String) The organization labels associated with the library template task (Only supported on Morpheus 5.5.3 or higher)
  • result_type (String) The expected result type (value, keyValue, json)
  • retry_count (Number) The number of times to retry the library task if there is a failure
  • retry_delay_seconds (Number) The number of seconds to wait between retry attempts
  • retryable (Boolean) Whether to retry the library task if there is a failure
  • visibility (String) The visibility of the task (private or public)

Read-Only

  • id (String) The ID of the library template task

Import

Import is supported using the following syntax:

terraform import morpheus_library_template_task.tf_example_library_template_task 1