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?

asked 2 years ago1384 views
1 Answer
1
Accepted Answer

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
EXPERT
answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions