'How to dockerize to access on-premises NFS file from ECS Fargate (Linux/Windows) [closed]
I need to access the on-premises NFS file from docker orchestration on ECS Fargate (Linux/Windows). On-premises and AWS are connected via Direct Connect. I am unsure if the docker on ECS Fargate task can be mounted NFS/Samba to access NFS file. Question:
- If I choose to mount AWS EFS on docker and sync data to this volume from on-premises via DataSync - Is this solution acceptable?
- Any other AWS service that can be used to pick NFS file and consume using docker container orchestrated on ECS Fargate ?
Solution 1:[1]
The docs stated that only these volumes are allowed in ECS:
- Amazon EFS volumes
- FSx for Windows File Server volumes
- Docker volumes
- Bind mounts
So it currently does not support on-premises NFS file.
Another solution is to mount the EFS on-prem. Then you alter whatever the existing workload on-prem to write to the EFS, instead of (or in addition to) the current NFS.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 |
