alicloud_resource_manager_resource_share
更新时间:
Provides a Resource Manager Resource Share resource.
RS resource sharing.
For information about Resource Manager Resource Share and how to use it, see What is Resource Share.
-> NOTE: Available since v1.111.0.
Example Usage
Basic Usage
variable "name" {
default = "tf-example"
}
resource "alicloud_resource_manager_resource_share" "example" {
resource_share_name = var.name
}
Argument Reference
The following arguments are supported:
allow_external_targets- (Optional, Available since v1.261.0) Whether to allow sharing to accounts outside the resource directory. Value:- false (default): Only sharing within the resource directory is allowed.
- true: Allow sharing to any account.
permission_names- (Optional, List, Available since v1.261.0) Share permission name. When it is empty, the system automatically binds the default permissions associated with the resource type. For more information, see Permission Library.resource_group_id- (Optional, Computed, Available since v1.261.0) The ID of the resource groupresource_share_name- (Required) The name of resource share.resources- (Optional, List, Available since v1.261.0) List of shared resources. Note: The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation. Seeresourcesbelow.tags- (Optional, Map, Available since v1.261.0) The tag of the resourcetargets- (Optional, List, Available since v1.261.0) Resource user.
resources
The resources supports the following:
resource_id- (Optional, Available since v1.261.0) The ID of the shared resource.resource_type- (Optional, Available since v1.261.0) Shared resource type. For the types of resources that support sharing, see Cloud services that support sharing.
Attributes Reference
The following attributes are exported:
id- The ID of the resource supplied above.create_time- The create time of resource share.resource_share_owner- The owner of resource share,SelfandOtherAccounts.status- The status of resource share.Active,DeletedandDeleting.
Timeouts
The timeouts block allows you to specify timeouts for certain actions:
create- (Defaults to 5 mins) Used when create the Resource Share.delete- (Defaults to 10 mins) Used when delete the Resource Share.update- (Defaults to 5 mins) Used when update the Resource Share.
Import
Resource Manager Resource Share can be imported using the id, e.g.
$ terraform import alicloud_resource_manager_resource_share.example <id>
该文章对您有帮助吗?