问题
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 :
- If I mount a S3 bucket on EC2 instance do I need to make any entry to the
fstab
. - 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
回答1:
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
来源:https://stackoverflow.com/questions/24729520/mounting-a-s3-bucket-using-s3fs-utility-aws