Search code examples
amazon-web-servicesaws-fargateamazon-efs

AWS - Fargate - Adding EFS to Container - From AWS Console


I am trying to mount a persistent storage in a Fargate container.

  • I have set up an EFS file system.
  • I have set up an ECS Cluster.
  • EFS and ECS share one subnet.
  • When I try to create a task definition, I choose Fargate and then on Add container. I scroll down to Storage and Logging and cannot choose the EFS file system in Mount points. I cannot choose anything here, the only choice I have is: <None>

This SO question suggests it is possible, but here it was answered using the AWS Cli Application. I wonder if I cannot just do it from the AWS Console (which is the web interface).


Solution

  • Before you can setup Mount point in your Container definition, you have to setup Volume in your Task definition:

    enter image description here