Setting up the AWS SDK for Java 2.x
The AWS SDK for Java 2.x provides Java APIs for Amazon Web Services (AWS). Using the
SDK, you can build Java
applications that work with Amazon S3, Amazon EC2, DynamoDB, and more.
This section provides information about how to set up your development environment
and projects to
use the latest version (2.x) of the AWS SDK for Java.
Overview
To make requests to AWS using the AWS SDK for Java, you need the following:
An active AWS account
An AWS Identity and Access Management (IAM) user with:
A programmatic access key
Permissions to the AWS resources you’ll access using your application
A development environment with:
Your access key configured as credentials for AWS
Java 8 or later
A build automation tool
Create an AWS account
If you do not have an AWS account, visit
the Amazon Web Services signup page
and follow the on-screen prompts to create and activate a new account.
After you activate your new AWS account, follow the instructions in
Creating your first IAM admin user and group
in the IAM User Guide. Use this account instead of the root account when accessing
the AWS Console.
For more information, see
Security best practices in IAM
in the IAM User Guide.
Create an IAM user and programmatic access key
To use the AWS SDK for Java to access AWS, you need an AWS account and AWS credentials.
To increase
the security of your AWS account, for access credentials, we recommend that you use
an IAM user
instead of your AWS account credentials.
Note
For an overview of IAM users and why they are important for the security
of your account, see AWS secu