Skip to contents

Gets user information, including policies, groups, and attached policies

Usage

aws_user(username = NULL)

Arguments

username

(character) A user name. required

Value

a named list with slots for:

  • user (tibble)

  • policies (list)

  • attached_policies (list)

  • groups (list)

Note

if username not supplied, gets logged in user

Examples

if (FALSE) { # \dontrun{
# if username not supplied, gets the logged in user
aws_user()
} # }

if (FALSE) { # aws_has_creds()
if (aws_user_exists("testBlueBird")) {
  aws_user_delete("testBlueBird")
}
aws_user_create("testBlueBird")
aws_user("testBlueBird")

# cleanup
aws_user_delete("testBlueBird")
}