ECS: efsVolumeConfiguration mount single file instead of directory

0

I'm trying to find a way to mount a single settings file on an EFS to one of my ECS fargate containers. I manage to mount an entire diretory, but that's not what I need. I only need the one file to be mounted, as to not loose all the other files on the containers destination.

According the documentation this is possible, as it says here on the first line:

With bind mounts, a **file **or directory on a host, such as an Amazon EC2 instance or AWS Fargate, is mounted into a container.

But after trying all possible ways and searching the internet I have not find the solution to my problem. Any ideas?

已提问 2 年前1438 查看次数
1 回答
1
已接受的回答

It's not currently possible to configure your task such that only a single file from an EFS volume is mounted into your container.

Bind mounts are a different kind of mount - those are mounts of local (i.e., host) filesystems into containers. With Fargate, only temporary volumes on the host and directories shared from a container running in the same task can be bind-mounted.

AWS
专家
已回答 2 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则