How to create an IAM user in AWS

In this post we will see how to create an IAM user which can be used to access S3 using CLI.

  • Login to  AWS IAM console.
  • In the left pane click on “Users”
  • Click on “Add user”

a) User name: S3User

b) Access Type: Check Programmatic Access.

  • Click Next

a) Select Attach existing policies directly.

b) Search for AmazonS3FullAccess and select it.

  • Click Next.
  • Review everything and click “Create user”

It will show you “Access key ID”  and “Secret access key”. Save them as you won’t be able to see the “Secret access key” once you close this page.

In this tutorial we have selected the existing S3 policy but you can also attach your own customized policy to make the access more secure.

Congrats you have created an IAM user successfully. You can use this to access S3 using CLI. Check this post for details.