alicloud_ram_users
The Ram Users data source provides a list of Alicloud Ram Users in an Alicloud account according to the specified filters.
Example Usage
data "alicloud_ram_users" "user" { output_file = "users.txt" group_name = "group1" policy_name = "AliyunACSDefaultAccess" policy_type = "Custom" name_regex = "^user" }
Argument Reference
The following arguments are supported:
-
name_regex
- (Optional) A regex string to apply to the user list returned by Alicloud. -
group_name
- (Optional) Limit search to specific the group name. Found the users which in the specified group. -
policy_type
- (Optional) Limit search to specific the policy type. Valid items areCustom
andSystem
. If you set this parameter, you must setpolicy_name
at one time. -
policy_name
- (Optional) Limit search to specific the policy name. If you set this parameter without setpolicy_type
, we will specified it asSystem
. Found the users which attached with the specified policy. -
output_file
- (Optional) The name of file that can save users data source after runningterraform plan
.
Attributes Reference
A list of users will be exported and its every element contains the following attributes:
-
id
- Id of the user. -
name
- Name of the user. -
create_date
- Create date of the user. -
last_login_date
- Last login date of the user.
© 2018 HashiCorpLicensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/alicloud/d/ram_users.html