Elastic File System

EFS is a fully managed Elastic shared file system that can be accessed by other AWS Services. EFS scales transparently, replicated the data and makes it available across Availability Zones (seeRegions and AZs)

Integration with ECS

Works with EC2 instances and with Fargate via platform version 1.4.0 and above.

Fargate

This integrations are done in the task level. As the containers in the task are stateless (container volumes are tied to the lifecycle of the container) we need a solution a different solution to store data, so the "state" can live outside of the container. Using EFS as a volume storage we can mount and attach volumes that are decoupled from t he container lifecycle