» alicloud_resource_manager_roles

This data source provides the Resource Manager Roles of the current Alibaba Cloud user.

» Example Usage

data "alicloud_resource_manager_roles" "example" {
  name_regex = "tftest"

output "first_role_id" {
  value = "${data.alicloud_resource_manager_roles.example.roles.0.id}"

» Argument Reference

The following arguments are supported:

  • ids - (Optional) A list of Resource Manager Role IDs.
  • name_regex - (Optional) A regex string to filter results by role name.
  • output_file - (Optional) File name where to save data source results (after running terraform plan).

» Attributes Reference

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

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