1

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).

TheCommoner282
  • 205
  • 1
  • 7

1 Answers1

2

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

enter image description here

Marcin
  • 215,873
  • 14
  • 235
  • 294
  • 1
    Oh my... That's outside. In the task definition, not inside the `Add container`. Do you know how much time this just ate. Thank you so very much! – TheCommoner282 Dec 17 '20 at 14:06
  • @TheCommoner282 Yes, its not very intuitive. But glad it worked out:-) – Marcin Dec 17 '20 at 21:52