alicloud_ram_policies

The Ram Policies data source provides a list of Alicloud Ram Policies in an Alicloud account according to the specified filters.

Example Usage

data "alicloud_ram_policies" "policy" {
  output_file = "policies.txt"
  user_name = "user1"
  group_name = "group1"
  type = "System"
}

Argument Reference

The following arguments are supported:

  • name_regex - (Optional) A regex string to apply to the policy list returned by Alicloud.
  • type - (Optional) Limit search to specific the policy type. Valid items are Custom and System.
  • user_name - (Optional) Limit search to specific the user name. Found the policies which attached with the specified user.
  • group_name - (Optional) Limit search to specific the group name. Found the policies which attached with the specified group.
  • role_name - (Optional) Limit search to specific the role name. Found the policies which attached with the specified role.
  • output_file - (Optional) The name of file that can save policies data source after running terraform plan.

Attributes Reference

A list of policies will be exported and its every element contains the following attributes:

© 2018 HashiCorp
Licensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/alicloud/d/ram_policies.html