amazon-web-servicesamazon-ecsaws-fargateamazon-ebs

How do I connect EBS to ECS Fargate?


I am trying to connect the same EBS to multiple ECS instances running on Fargate. I have a Docker container of my app, the ECS Task and ECS Service are working as expected, but I can't find any way to connect EBS to the ECS Task.

Note: The app instances synchronize writes through a common agent so there won't be a problem with regards to concurrency.


Solution

  • New answer: It is now possible.


    Old answer:

    You can't do that. It is not possible. EBS only works with EC2 instances. EBS is not supported by Fargate (at this time). You would need to use EFS with Fargate.