Provides a Resource Manager Folder resource. A folder is an organizational unit in a resource directory. You can use folders to build an organizational structure for resources. For information about Resource Manager Foler and how to use it, see What is Resource Manager Folder.
Basic Usage
variable "name" {
default = "tf-example"
}
resource "random_integer" "default" {
min = 10000
max = 99999
}
resource "alicloud_resource_manager_folder" "example" {
folder_name = "${var.name}-${random_integer.default.result}"
}
The following arguments are supported:
folder_name
- (Required) The name of the folder. The name must be 1 to 24 characters in length and can contain letters, digits, underscores (_), periods (.), and hyphens (-).parent_folder_id
(Optional, ForceNew) The ID of the parent folder. If not set, the system default value will be used.id
- The ID of the folder.Resource Manager Folder can be imported using the id, e.g.
$ terraform import alicloud_resource_manager_folder.example fd-u8B321****