Creating a User With an AWS CLI Command

Prev Next

You can use this AWS CLI command to create a user:

aws iam create-user --user-name Bob

Note that you are referencing the IAM endpoint rather than the S3 endpoint. An example of the command is:

$ aws iam create-user --user-name mikeotestuser--endpoint-url=https://iam.wasabisys.com
{
    "User": {
        "UserName": "mikeotestuser", 
        "Path": "/", 
        "CreateDate": "2019-09-18T16:04:37.031Z", 
        "UserId": "1PIFRFBITH1515N0TR3AL", 
        "Arn": "arn:aws:iam::100009912345:user/mikeo-test-iam"
    }
}
$