Yes, you are right. You can store the files temporarily in /tmp
folder like you do in any EC2 instance, but it cannot exceed 20GiB with default settings. Please read this doc here.
Also, if you want to persist the files, you could use EFS mounting.
To add to the answer, you can definitely indeed store files locally on the filesystem in similar way to lambda / EC2. Your image + local content can go up to 20GB "for free" with every task. You can go up to 200GB of that NVMe goodness, but you have to pay for the storage above 20GB (also you have to define that at the task definition level, it doesn't magically add storage for you).
But instead of EFS I'd much more recommend something a little more modern and use S3, as if you needed to do any form of automation (i.e. trigger a lambda when that temporary file is created/updated) then that's easy to do, whereas EFS won't give you that. But that very much depends on your IO pattern.
EFS requires also a little more involvement in the infrastructure. Not too much but substantially more than S3.
Relevant questions
EFS volume in Batch job running on Fargate
asked 6 months agoAWS Glue ETL Job: IllegalArgumentException: Missing collection name.
asked 3 months agoHow do i stop a restore job that's running for a week.
asked 6 months agoUse API Gateway to run a Fargate task and then terminate that pod upon completion
asked 5 months agohow to save a file while running an etl job in a fargate task?
asked a month agoHow to retrieve job run id from the script itself in python shell glue job
asked 4 months agoHow to use custom retry code for Batch job
asked 2 years agoHow to scale in ec2 fargate containers if job is done?
asked 5 months agoCan I force each job to run on a dedicated instance?
Accepted Answerasked 3 years agocan a s3 object creation event trigger an existing fargate job?
asked 8 days ago