Connect amazon s3 and trim down file saving