This is a very good explanation of why S3 credentials should be in the environment and how to make this happen.

@mkorszun Can you adapt this for the Java version?