alicloud_resource_manager_shared_target

Provides a Resource Manager Shared Target resource.

For information about Resource Manager Shared Target and how to use it, see What is Shared Target.

Example Usage

Basic Usage

variable "name" {
  default = "tfexample"
}
data "alicloud_resource_manager_accounts" "default" {}

resource "alicloud_resource_manager_resource_share" "example" {
  resource_share_name = var.name
}

resource "alicloud_resource_manager_shared_target" "example" {
  resource_share_id = alicloud_resource_manager_resource_share.example.id
  target_id         = data.alicloud_resource_manager_accounts.default.ids.0
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported:

Timeouts

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

Import

Resource Manager Shared Target can be imported using the id, e.g.

$ terraform import alicloud_resource_manager_shared_target.example <resource_share_id>:<target_id>