Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using boto3 to download files from EFS Amazon

I am following this documentation to download files from EFS https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/efs.html

I have read through the whole documentation and could not figure out a way to download files. Only possible way is that using: generate_presigned_url(). However, the documentation for this part is very limited. I have tried so many times but got stuck. Any suggestion ? Thanks.

like image 939
daniel8x Avatar asked Sep 20 '25 00:09

daniel8x


1 Answers

The EFS creates a filesystem for you. For example, if you are using linux, it will be available as a NFS share which you can access as a regular file system:

  • Mounting EFS file systems

Then you just use your regular python or operating system tools to operated on the files stored in the EFS filesystem.

For example, in python you can use shutil to copy or movie files into and out of your EFS mounted filesystem.

Boto3's interface to EFS is only for its management, not for working with files stored on a EFS filesystem.

like image 183
Marcin Avatar answered Sep 22 '25 14:09

Marcin