Mounting a S3 bucket using s3fs utility AWS

半世苍凉 提交于 2019-12-10 10:36:09

问题


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


回答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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!