alicloud_ros_template_scratch

Provides a ROS Template Scratch resource.

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

Example Usage

Basic Usage

data "alicloud_resource_manager_resource_groups" "default" {}

resource "alicloud_ros_template_scratch" "example" {
  description           = "tf_testacc"
  template_scratch_type = "ResourceImport"
  preference_parameters {
    parameter_key   = "DeletionPolicy"
    parameter_value = "Retain"
  }
  source_resource_group {
    resource_group_id    = data.alicloud_resource_manager_resource_groups.default.ids.0
    resource_type_filter = ["ALIYUN::ECS::VPC"]
  }
}

Argument Reference

The following arguments are supported:

Block source_resources

The source_resources supports the following:

Block source_resource_group

The source_resource_group supports the following:

Block source_tag

The source_tag supports the following:

Block preference_parameters

The preference_parameters supports the following:

Attributes Reference

The following attributes are exported:

Timeouts

The timeouts block allows you to specify timeouts for certain actions:

Import

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

$ terraform import alicloud_ros_template_scratch.example <id>