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?

posta 2 anni fa1439 visualizzazioni
1 Risposta
1
Risposta accettata

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
ESPERTO
con risposta 2 anni fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande