Menu
AWS SDK for Java
Developer Guide

Sign Up for AWS and Create an IAM User

To use the AWS SDK for Java to access Amazon Web Services (AWS), you will need an AWS account and AWS credentials. To increase the security of your AWS account, we recommend that you use an IAM user to provide access credentials instead of using your root account credentials.

Note

For an overview of IAM users and why they are important for the security of your account, see Overview of Identity Management: Users in the IAM User Guide.

To sign up for AWS

  1. Open https://aws.amazon.com/ and click Sign Up.

  2. Follow the on-screen instructions. Part of the sign-up procedure involves receiving a phone call and entering a PIN using your phone keypad.

Next, create an IAM user and download (or copy) its secret access key.

To create an IAM user

  1. Go to the IAM console (you may need to sign in to AWS first).

  2. Click Users in the sidebar to view your IAM users.

  3. If you don't have any IAM users set up, click Create New Users to create one.

  4. Select the IAM user in the list that you'll use to access AWS.

  5. Open the Security Credentials tab, and click Create Access Key.

    Note

    You can have a maximum of two active access keys for any given IAM user. If your IAM user has two access keys already, then you'll need to delete one of them before creating a new key.

  6. On the resulting dialog box, click the Download Credentials button to download the credential file to your computer, or click Show User Security Credentials to view the IAM user's access key ID and secret access key (which you can copy and paste).

    Important

    There is no way to obtain the secret access key once you close the dialog box. You can, however, delete its associated access key ID and create a new one.

Next, you should set your credentials in the AWS shared credentials file or in the environment.

Note

If you use the Eclipse IDE, you should consider installing the AWS Toolkit for Eclipse and providing your credentials as described in Set up AWS Credentials in the AWS Toolkit for Eclipse User Guide.