Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mounting a S3 bucket using s3fs utility AWS

I am using s3fs utility to mount a S3 bucket on an EC2 instance.

After crossing so much hurdles I am able to mount the S3 bucket.

I have few queries :

  1. If I mount a S3 bucket on EC2 instance do I need to make any entry to the fstab.
  2. If I mount a S3 bucket on EC2 instance then the I can see the files and folders in the mount device like /s3mnt but I am not able to see the contents on the S3 bucket. Does the content disappears from the bucket??

Thanks

like image 975
user3086014 Avatar asked Dec 09 '25 07:12

user3086014


1 Answers

Automatically mount the S3 bucket when the server boots by adding an entry to /etc/fstab using the following syntax:

s3fs#bucket-name /s3mnt fuse allow_other,_netdev,nosuid,nodev,url=https://s3.amazonaws.com 0 0
like image 200
user3086014 Avatar answered Dec 12 '25 07:12

user3086014



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!