» alicloud_resource_manager_policies

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

» Example Usage

data "alicloud_resource_manager_policies" "example" {
    name_regex = "tftest"
    description_regex = "tftest_policy"
    policy_type = "Custom"
}

output "first_policy_id" {
  value = "${data.alicloud_resource_manager_policies.example.policies.0.id}"
}

» Argument Reference

The following arguments are supported:

  • ids - (Optional) A list of Resource Manager Policy IDs.
  • name_regex - (Optional) A regex string to filter results by policy name.
  • output_file - (Optional) File name where to save data source results (after running terraform plan).
  • policy_type - (Optional) The type of the policy. If you do not specify this parameter, the system lists all types of policies. Valid values: Custom and System.

» Attributes Reference

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