Prerequisites
The following sections will explain the prerequisites for managing Amazon S3 using the AWS SDK for Java.
The AWS SDK for Java
The AWS SDK for Java is required in order to use the Amazon API. This SDK contains a .jar
file, which we need to add to our project's classpath. You can download the SDK from the following URL:
The access key and secret key
The access key and the secret key are required to connect to Amazon S3. These credentials can be obtained by creating a user in Amazon IAM.
Log in to the AWS console, and click on Identity & Access Management, as shown in the following screenshot:
This directs you to the Identity & Access Management screen, which enables you to create AWS users and groups, and assign roles to them, as seen in the following screenshot:
Click on Users in the menu on the left-hand side of the screen. This opens up a screen for creating new users and for displaying the listing of the existing users:
Click on...