Score:0

How to share directory with Fargate container

gr flag

I have a fargate container running which needs access to files present on an EC2 instance. Both are in the same network and security groups do not restrict traffic.

I tried using sshfs as well as mount using cifs.utils package. However because it is a container I get errors during the mount

Unable to apply new capability set.

or

fuse: device not found, try 'modprobe fuse' first

I checked the workaround in https://stackoverflow.com/questions/48402218/fuse-inside-docker, but this involves having access to docker host. And my setup is not on hosted ECS.

Is there a way to make the contents of a directory on an ec2 instance available on a Fargate container?

Tim avatar
gp flag
Tim
I wonder if you could rearchitect so shared files are on EFS https://aws.amazon.com/premiumsupport/knowledge-center/ecs-fargate-mount-efs-containers-tasks/
Score:0
in flag

For your case WebDAV (see "Server Support" and "Client Support" section) seems to be a viable solution because of the flexibility you can have on EC2 instance. On Fargate which is a controlled environment, you can built client tools into your image that can interact with the server over the network, eg. HTTP, FTP, sFTP etc.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.