The knox library does not support the AWS Instance Role. So use the official AWS SDK to connect to S3