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?

preguntada hace 2 años1439 visualizaciones
1 Respuesta
1
Respuesta aceptada

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
EXPERTO
respondido hace 2 años

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas