AWS EFS rest API to manage file and folder of any filesystem

0

I'm working on research for Amazon EFS. What I figured out:

  • File system
  • Moute it with ec2 of Linux
  • mkdir file and share it among different EC2 instances.

What I can't find

  • how to work with files and folders in RestAPIs or in Postman
  • Even the handling of files is not given in the EFS SDK document

Could anyone please shed some light if it's possible to work with files like upload/download/list/archive with RestAPI or with SDK

질문됨 일 년 전844회 조회
1개 답변
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

profile picture
전문가
답변함 일 년 전
  • 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

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠