You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just a quick question: is it possible to specify a local folder to be used as a S3 bucket mock?
Currently I'm uploading the files in the folder itertatively to the mocked S3 bucket, but it's tedious and takes time because there are so many. I would like to just tell Moto to serve the folder as contents of the mocked S3 bucket.
The text was updated successfully, but these errors were encountered:
Hi @HWiese1980, no, that is not possible. S3 objects that are 'uploaded' are kept in memory (except for very large files), and are closely tied to the metadata, so it's not possible to simply point to a folder on disk.
The question has come up before, and I shared an example how you could use the internal API to upload S3 files for better performance: #7226 (comment)
The caveats mentioned there before still exist - it's an internal API, so it may break without warning, and will not work when running the MotoServer.
Just a quick question: is it possible to specify a local folder to be used as a S3 bucket mock?
Currently I'm uploading the files in the folder itertatively to the mocked S3 bucket, but it's tedious and takes time because there are so many. I would like to just tell Moto to serve the folder as contents of the mocked S3 bucket.
The text was updated successfully, but these errors were encountered: