In this post, I’d like to share with you how to create Amazon Web Services (AWS) credentials that allow applications to use AWS services programmatically (programmatic access), such as uploading/download files with Amazon S3 APIs.

Notes: You must sign up for an AWS account and create an IAM admin user beforehand. You can use your AWS account root user but it is not recommended.

Sign in AWS management console under an IAM admin user. Then go to IAM dash board and click Users on the left menu, then click Add users button at the upper right corner, as shown below:

iam add users

Enter username, and select AWS credential type is Access Key - Programmatic access:

aws set user details

Click Next to set permissions for this user:

aws set permissions

Click Attach existing policies directly, then type s3 in the textbox Filter policies, then choose AmazonS3FullAccess from the list. If you have user groups already, you can add this user to the group you wish to.



Click Next 2 times and click Create user. The user is created as below:

aws user created

Now copy the values of Access key ID and Secret access key. Keep them in a secure place.

Important Note: The Secret access key appears only once. That means you should save it immediately, right after the user is created. Otherwise you will have to create another user.

If you want to see how to generate AWS access key ID and secret access key in action, watch the following video:

 

Related Tutorials:


About the Author:

is certified Java programmer (SCJP and SCWCD). He began programming with Java back in the days of Java 1.4 and has been passionate about it ever since. You can connect with him on Facebook and watch his Java videos on YouTube.