1 Answer
- Newest
- Most votes
- Most comments
1
EFS is network file storage, so it is not possible to upload, download, list, or archive files via Rest API or other means.
The only way to do this is to mount and manipulate files from EC2, etc.
https://docs.aws.amazon.com/efs/latest/ug/whatisefs.html
Relevant content
- asked 4 years ago
- asked 6 months ago
- Accepted Answerasked a year ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated 5 months ago
- AWS OFFICIALUpdated 9 months ago
- AWS OFFICIALUpdated 2 years ago
If that is so, is it possible to work with files using code? Is any client library available?
If EFS is mounted with NFS, it would be possible to manipulate files using the code. For example, in Python, the "open()" function can be used to open and write files. The "os" module can also be used to delete files.
could you please provide me some documentation for the same or a more detailed version of it? It would be really helpful
The open() function is documented below. open() is a built-in Python function and can be used as is. https://docs.python.org/3/library/functions.html#open
The following document is the documentation for the os module. The os.remove() function here can delete files. Incidentally, os.mkdir() and os.rmdir() can also be used to create and delete directories. https://docs.python.org/3/library/os.html