alicloud_resource_manager_folder

更新时间:

Provides a Resource Manager Folder resource.

The management unit of the organization account in the resource directory.

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

-> NOTE: Available since v1.82.0.

Example Usage

Basic Usage


variable "name" {
  default = "terraform-example"
}

resource "random_integer" "default" {
  min = 10000
  max = 99999
}

resource "alicloud_resource_manager_folder" "example" {
  folder_name = "${var.name}-${random_integer.default.result}"
}

Argument Reference

The following arguments are supported:

  • folder_name - (Required) The name of the folder.
  • parent_folder_id - (Optional, ForceNew) The ID of the parent folder.
  • tags - (Optional, Map, Available since v1.259.0) The tag of the resource.

Attributes Reference

The following attributes are exported:

  • id - The ID of the resource supplied above.
  • create_time - (Available since v1.259.0) The time when the folder was created.

Timeouts

-> NOTE: Available since v1.259.0.

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

  • create - (Defaults to 5 mins) Used when create the Folder.
  • delete - (Defaults to 5 mins) Used when delete the Folder.
  • update - (Defaults to 5 mins) Used when update the Folder.

Import

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

$ terraform import alicloud_resource_manager_folder.example <id>