alicloud_ram_roles

This data source provides a list of RAM Roles in an Alibaba Cloud account according to the specified filters.

Example Usage

data "alicloud_ram_roles" "roles_ds" {
  output_file = "roles.txt"
  name_regex  = ".*test.*"
  policy_name = "AliyunACSDefaultAccess"
  policy_type = "Custom"
}

output "first_role_id" {
  value = "${data.alicloud_ram_roles.roles_ds.roles.0.id}"
}

Argument Reference

The following arguments are supported:

Attributes Reference

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