Provides a Resource Manager Resource Directory resource. Resource Directory enables you to establish an organizational structure for the resources used by applications of your enterprise. You can plan, build, and manage the resources in a centralized manner by using only one resource directory.
For information about Resource Manager Resource Directory and how to use it, see What is Resource Manager Resource Directory.
Basic Usage
data "alicloud_resource_manager_resource_directories" "default" {
}
resource "alicloud_resource_manager_resource_directory" "default" {
count = length(data.alicloud_resource_manager_resource_directories.default.directories) > 0 ? 0 : 1
status = "Enabled"
}
The following arguments are supported:
status
- (Optional, Available since v1.120.0) The status of control policy. Valid values:Enabled
and Disabled
.member_deletion_status
- (Optional, Available since v1.201.0) Specifies whether to enable the member deletion feature. Valid values:Enabled
and Disabled
.id
- The ID of the resource directory.root_folder_id
- The ID of the root folder.master_account_id
- The ID of the master account.master_account_name
- The name of the master account.The timeouts
block allows you to specify timeouts for certain actions:
update
- (Defaults to 6 mins) Used when update the control policy status.Resource Manager Resource Directory can be imported using the id, e.g.
$ terraform import alicloud_resource_manager_resource_directory.example rd-s3****