Set up S3 and enviroment variables