What is the preferred method to mount an S3 bucket to Linux EC2 instances?

0

I notice S3FS and AWS Mountpoint as available options to mount an S3 bucket. There are key limitations to both, but I just need a share that can be accessed across many EC2 instances where users can read/write/delete/rename files and folders. Throughput and performance are not important in this scenario, but the ability to rename and delete files/folders is important. Does anyone have any suggestions on this please?

2개 답변
0

Take a look at storage gateway. Choose the EC2 option.

profile pictureAWS
전문가
kentrad
답변함 3달 전
profile picture
전문가
검토됨 한 달 전
  • Thank you for your response. In this case, since these are all Linux servers, EFS looks like a better fit.

0

The lowest cost way of just mounting a bucket as a file-system would be to use Mountpoint for S3. This is an open-source file client that you can use to mount an S3 bucket on your compute instance and access it as a local file system.

Storage Gateway is your other option - but that can be more expensive.

If you just want to sync files from a local file-system to S3 in EC2 - then just use the AWS CLI together with the S3 Sync command.

Consider also using an S3 Gateway Endpoint in the VPC that your EC2 instance lives in - this will mean that traffic to S3 will not pass through your Internet Gateway - and thus not count as egress traffic from EC2.

AWS
전문가
답변함 3달 전
profile picture
전문가
검토됨 한 달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠