Data Source: aws_iam_user#
Provides information about an IAM user.
Example Usage#
data "aws_iam_user" "selected" {
name = "user-name"
}
Argument Reference#
name- (Required) The name of the user.
Attribute Reference#
Supported attributes#
In addition to all arguments above, the following attributes are exported:
arn- The Amazon Resource Name (ARN) of the user.display_name- The displayed name of the user.email- The email of the user.enabled- Indicates whether the user is not locked.id- The name of the user.last_login_date- The time in RFC3339 format when the user last logged in to the web interface.login- The login of the user.otp_required- Indicates whether the user is required to use two-factor authentication to log in to the web interface.phone- The phone number of the user.update_date- The time in RFC3339 format when the user was last updated.user_id- The ID of the user.
Unsupported attributes#
~> Note These attributes may be present in the terraform.tfstate file, but they have preset values and cannot be specified in configuration files.
The following attributes are not currently supported:
path, permissions_boundary, tags.