alicloud_ros_template

更新时间:

Provides a ROS Template resource.

For information about ROS Template and how to use it, see What is Template.

-> NOTE: Available in v1.108.0+.

Example Usage

Basic Usage


resource "alicloud_ros_template" "example" {
  template_name = "example_value"
  template_body = <<EOF
    {
    	"ROSTemplateFormatVersion": "2015-09-01"
    }
    EOF
}

Argument Reference

The following arguments are supported:

  • description - (Optional) The description of the template. The description can be up to 256 characters in length.
  • template_body - (Optional) The structure that contains the template body. The template body must be 1 to 524,288 bytes in length. If the length of the template body is longer than required, we recommend that you add parameters to the HTTP POST request body to avoid request failures due to excessive length of URLs. You must specify one of the TemplateBody and TemplateURL parameters, but you cannot specify both of them.
  • template_name - (Required) The name of the template. The name can be up to 255 characters in length and can contain digits, letters, hyphens (-), and underscores (_). It must start with a digit or letter.
  • template_url - (Optional) The template url.
  • tags - (Optional) A mapping of tags to assign to the resource.

Attributes Reference

The following attributes are exported:

  • id - The resource ID in terraform of Template. Value as template_id.

Import

ROS Template can be imported using the id, e.g.

$ terraform import alicloud_ros_template.example <template_id>