» alicloud_resource_manager_folders

This data source provides the resource manager folders of the current Alibaba Cloud user.

» Example Usage

data "alicloud_resource_manager_folders" "example" {
  name_regex = "tftest"

output "first_folder_id" {
  value = "${data.alicloud_resource_manager_folders.example.folders.0.id}"

» Argument Reference

The following arguments are supported:

  • ids - (Optional) A list of resource manager folders IDs.
  • name_regex - (Optional) A regex string to filter results by folder name.
  • output_file - (Optional) File name where to save data source results (after running terraform plan).
  • parent_folder_id (Optional) The ID of the parent folder.

» Attributes Reference

The following attributes are exported in addition to the arguments listed above:

  • ids - A list of folder IDs.
  • names - A list of folder names.
  • folders - A list of folders. Each element contains the following attributes: