Is there any feasible way to upload a file which is generated dynamically to amazon s3 directly without first create a local file and then upload to the s3 server? I use python.
You could use BytesIO from the Python standard library.
from io import BytesIO bytesIO = BytesIO() bytesIO.write('whee') bytesIO.seek(0) s3_file.set_contents_from_file(bytesIO)