Вы пытаетесь загрузить свою структуру каталогов в s3?
Тогда вы можете попробовать это с CLI:
aws s3 sync . s3://mybucket
https://docs.aws.amazon.com/cli/latest/reference/s3/sync.html
Вы также можете достичь этого программно:
TransferManager tm = new TransferManager(new ProfileCredentialsProvider());
MultipleFileUpload upload = tm.uploadDirectory(bucket, folder, new File(filePath), true);
try
{
// Or you can block and wait for the upload to finish
upload.waitForCompletion();
LOGGER.debug("Upload complete.", bucket, folder);
}
catch (AmazonClientException amazonClientException)
{
LOGGER.error("Unable to upload file, upload was aborted.", amazonClientException);
throw amazonClientException;
}
https://docs.aws.amazon.com/sdk-for-java/v1/developer-guide/examples-s3-transfermanager.html