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.

posta un anno fa513 visualizzazioni
2 Risposte
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.

con risposta un anno fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande