Hi Readers, this document deals with how to mount s3 bucket in linux.
FUSE (Filesystem in Userspace) allows the user to mount the filesystem without changing the kernel code. s3fs is a FUSE filesystem allows the user to mount the s3 bucket in his system. The s3fs code is written in python. It allows non-root users to mount his own bucket in the system. s3 bucket gets mounted in the system like a normal NFS shared folder.
Now let’s see how to achieve this,
- S3 bucket with proper permissions
- Access and Secret key.
Install all the dependecy packages,
Now download the s3fs source code
Install s3fs from the source code.
Create access and secret key file
Enter your Access and Secret key in the following format.
Change permission for the password file.
Create a mounting folder
Here is the screenshot of after mounting the bucket in the filesystem.
Enter the following in fstab for automounting the s3bucket even after the system reboots.
If you are getting an error while mounting enable debug to understand the issue.
check this link to how to provide folder wise permission for a IAM user.
© 2018, Techrunnr. All rights reserved.