We have already configured the AWS CLI with credentials. Please refer to the SOP to set it up on your local machine. If you prefer not to use your local machine, you can use AWS CloudShell for the operations, which comes pre-configured with AWS CLI and access to your account. Ensure that the IAM user has the necessary permissions attached to perform the required operations.
For user creation already some type of the predefined policys here
- IAMUserManagement
- IAMFullAccess
- IAMCreateUser
- Administrator
1.Open the CLI or AWS CloudShell.
2.Then run the following command to create an IAM user.
Command – # aws iam create-user –user-name <username>
3.Then check on the AWS Console to confirm whether the user is created or not.
4.If you want to list users use this following command
Command – # aws iam list-users
We have not attached any permissions to this user. If you want to attach permissions, please refer to the other SOP.
END