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.

質問済み 1年前516ビュー
2回答
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.

回答済み 1年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ