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.

asked a year ago502 views
2 Answers
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.

answered a year 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