Ability to have different EBS Volume attached to each task in a Service

I am using Terraform to provision ECS cluster.
We use Fargate.
I have one service that will have 3 tasks.
I want each of these tasks to have a different EBS volume attached to it.
These tasks will read and write to this volume.

I have provisioned ECS Fargate cluster with Terraform before. In all these cases we were using EFS volumes. However, the same volume was attached to all the tasks. This is the first time I need to attach a different volume to each task.

I was wondering if it is possible to do this with Terraform.