Data Source: aws_iam_users

Use this data source to get the ARNs and Names of IAM Users.

Example Usage

All users in an account

data "aws_iam_users" "users" {}

Users filtered by name regex

Users whose username contains abc

data "aws_iam_users" "users" {
  name_regex = ".*abc.*"
}

Users filtered by path prefix

data "aws_iam_users" "users" {
  path_prefix = "/custom-path"
}

Argument Reference

This data source supports the following arguments:

Attribute Reference

This data source exports the following attributes in addition to the arguments above: