You can now easily configure your containerized application to access storage volumes backed by Local instance storage, Amazon Elastic Block Storage (EBS) or Amazon Elastic File System (EFS) volumes through the use of Docker volume drivers and volume plugins such as Rex-Ray and Portworx.
Previously, if you wanted to deploy containerized applications that required access to storage volumes, you had to manually manage your storage volume using custom tooling such as bash scripts, lambda functions, and manual configuration of Docker volumes.
Now, with the support for Docker volumes, you can deploy stateful and storage-intensive applications on Amazon ECS. You have the flexibility to configure the lifecycle of the Docker volume and specify whether it is a scratch space volume specific to a single instantiation of a task, or a persistent volume that persists beyond the lifecycle of a unique instantiation of the task. You can also choose to use a pre-provisioned Docker volume that you have created before launching your Task.
To get started with this feature, first install your preferred Docker volume plugin (if needed) and simply specify the volume name, the volume driver, and the parameters when setting up a task definition via the AWS management console, CLI or SDK.
To learn more, visit the Amazon ECS documentation.