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 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南