Create a user
Arguments
- username
(character) A user name. required
- path
(character) The path for the user name. optional. If it is not included, it defaults to a slash (/).
- permission_boundary
(character) The ARN of the managed policy that is used to set the permissions boundary for the user. optional
(list) A list of tags that you want to attach to the new user. optional
Details
See aws_user_create()
for more details.
This function creates a user, adds policies so the
user can access their own account, and grants them an access
key. Add more policies using aws_polic*
functions
What is magical
Adds a
GetUser
policy to your account if doesn't exist yetAttaches
GetUser
policy to the user createdGrants an access key
See also
Other users:
aws_user()
,
aws_user_access_key()
,
aws_user_access_key_delete()
,
aws_user_add_to_group()
,
aws_user_create()
,
aws_user_current()
,
aws_user_delete()
,
aws_user_exists()
,
aws_users()
,
six_user_delete()
Other magicians:
six_admin_setup()
,
six_bucket_delete()
,
six_file_upload()
,
six_user_delete()
Examples
if (FALSE) { # interactive()
name <- random_user()
six_user_create(name)
}