When exporting an stl it writes temporary files which is not allowed when deployed to aws unless it's in temp.