AWS EFS link to ECS

0

Hi All,

I created POC with EFS as temporary storage for my ECS Cluster. I'm using Fargate, and already setup EFS link on my ECS Task Definition.

Enter image description here

When I tried it, seems like it's failed because write permission denied.

Is there any official article about how to link EFS to ECS? Article that I saw is to link EFS to EC2 that using Amazon Linux 2 image.

Thank You.

preguntada hace un año516 visualizaciones
2 Respuestas
1

Make sure that you have set up the correct IAM permissions for your ECS tasks to access the EFS file system. You should have a policy that allows your ECS tasks to perform actions such as elasticfilesystem:ClientMount and elasticfilesystem:ClientWrite.

Secondly, you should ensure that your task definition is set up correctly to use EFS. This means including the efsVolumeConfiguration section in your task definition with the correct mount point and file system ID.

Or you can giving your ECS tasks superuser privileges, That might be a quick way to get around the issue.

respondido hace un año

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