Based on https://github.com/aws/aws-sdk-java/tree/master/src/samples
and https://github.com/awslabs/aws-java-sample