Skip to content

Latest commit

 

History

History
56 lines (42 loc) · 1.59 KB

write_attributes_task.md

File metadata and controls

56 lines (42 loc) · 1.59 KB
page_title subcategory description
morpheus_write_attributes_task Resource - terraform-provider-morpheus
Provides a Morpheus write attributes task resource

morpheus_write_attributes_task

Provides a Morpheus write attributes task resource

Example Usage

resource "morpheus_write_attributes_task" "tfexample_write_attributes" {
  name                = "tfexample_write_attributes"
  code                = "tfexample_write_attributes"
  labels              = ["demo", "terraform"]
  attributes          = <<EOF
{"demo":"test"}
EOF
  retryable           = true
  retry_count         = 1
  retry_delay_seconds = 10
  allow_custom_config = true
}

Schema

Required

  • name (String) The name of the write attributes task

Optional

  • allow_custom_config (Boolean) Custom configuration data to pass during the execution of the write attributes task
  • attributes (String) The attributes payload
  • code (String) The code of the write attributes task
  • labels (Set of String) The organization labels associated with the task (Only supported on Morpheus 5.5.3 or higher)
  • retry_count (Number) The number of times to retry the 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 task if there is a failure

Read-Only

  • id (String) The ID of the write attributes task

Import

Import is supported using the following syntax:

terraform import morpheus_write_attributes.tfexample_write_attributes 1