Access S3 as a Bind Mount from a Container
0
I'd like my Linux docker container to have access to S3 as a bind mount. The only thing I'm finding so far is s3fs, for example, https://github.com/s3fs-fuse/docker-s3fs-client. Is that recommended, or is there some better way? Ideally I'd see something detailed on docs.aws.amazon.com, but I'm not seeing anything there on s3fs.
asked 2 months ago1 views
1 Answers
1
Hello Matt, this happens because S3 is an object storage, not a file system. So you should interact with it with some APIs. If you want to mount the bucket as a file system you can use s3fs. if you don't like it as a solution, you should think of a service like EFS which can be mounted on the file system Thanks Joel
answered a month ago
Relevant questions
Access S3 as a Bind Mount from a Container
asked 2 months ago0 1 How to set permission on Volume mount
asked a year agoIs it possible to use an encrypted file system with CodeBuild?
asked 3 years agoECS: efsVolumeConfiguration mount single file instead of directory
Accepted Answerasked a month agoTask definition container command.
asked 2 months agoMount S3 to Windows EC2
Accepted Answerasked 2 years agoSelectively Exposing ECS Fargate Volumes Between Containers
asked a year agoPersistent or local Greengrass group deployment in Docker container
asked 2 years agoCan I attach Lightsail disk to a Lightsailt container?
Accepted Answerasked 3 months agoDataSync Agent -- What user does it run as?
Accepted Answerasked 2 years ago
That makes sense, thanks. I was hoping AWS would support some manner of mounting a bucket as a file system, or at least endorse s3fs or some other project out there. I didn't notice any AWS employees as significant contributors to s3fs, but it seems to be a pretty deep project. I'll probably go with that for now.
As for using an S3 API, I may eventually do that, but for now I'm just looking to move some existing code to the cloud with minimal effort.