mountpoint-s3: Support for AWS Fargate / mount failed on ECS Fargate

Mountpoint for Amazon S3 version

mountpoint-s3 v1.0.0

AWS Region

eu-west-2

Describe the running environment

Running ECS Fargate container - Linux.

Dockerfile.

FROM public.ecr.aws/amazoncorretto/amazoncorretto:17-al2-jdk RUN curl “https://s3.amazonaws.com/mountpoint-s3-release/latest/x86_64/mount-s3.rpm” -o “mount-s3.rpm” RUN yum install -y mount-s3.rpm && yum install jq -y RUN mkdir s3_bucket COPY app.jar app.jar COPY server-start.sh / EXPOSE 8003 ENTRYPOINT [“sh”, “/server-start.sh”]

server-start.sh mount-s3 BUCKET_NAME s3_bucket

  • Task has permission to access S3.
  • No permissions set on S3 bucket.

What happened?

Container started successfully but the mount failed to happen.

Relevant log output

August 11, 2023 at 19:02 (UTC+1:00)     Error: Failed to create mount process
August 11, 2023 at 19:02 (UTC+1:00)	fuse: device not found, try 'modprobe fuse' first
August 11, 2023 at 19:02 (UTC+1:00)	Error: Failed to create FUSE session
August 11, 2023 at 19:02 (UTC+1:00)	Caused by:

About this issue

  • Original URL
  • State: open
  • Created 3 years ago
  • Reactions: 107
  • Comments: 20 (4 by maintainers)

Most upvoted comments

Yeah, Mountpoint requires additional permissions that Fargate isn’t able to provide. For now, ECS + EC2 is our recommended option, but we’re looking into what else might be possible here. I’m going to leave this open for other folks who might try Fargate and run into the same problem.

We don’t currently have any news to share regarding this feature request, though please react with 👍 on the main post so we can continue to gauge interest

This would simplify the release process so much as, in many cases, many containers only require updating src. For containers using PHP, for example, this could be as easy as restarting the container without rebuilding it. S3 with ECS Fargate would be a huge step forward.

Any updates?

I don’t understand how a product made by AWS Labs does not support a mainstream AWS platform like ECS Fargate. I’m sure there is a solution if both product teams work together.