I would like to mount the efs file system on a task level running a container. I do not want to mount the file system directly inside ec2 container. On trying to mount the file system inside container getting error
mount: /efs: permission denied.
dmesg(1) may have more information after failed mount system call.
I have attached the policies like AmazonElasticFileSystemFullAccess, AmazonECSTaskExecutionRolePolicy, etc., to the ecsTaskExecutionRole role which is assigned to the task definition. I am able to mount the file system on ec2 instance which has the same permissions as to task, but I am not able to mount the file system on task container. If I add the mount volume and mount points inside the task definition, my file system is getting mounted inside the ec2 instance as well. My requirement is, I would like to create separate file system for each task container. My security group associated with task/efs has all traffic open for inbound and outbounds.
Ahsen Ali Mohammed is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.