setted the s3 end point based on s3 upload flag for get workspace api