I'm currently running some containers on production using AWS Fargate
. I'm running an application that from time to time populates some files to /tmp
folder.
That said, I want to know what happens to this /tmp
folder. Is this something managed by Fargate
(by ECS Container Agent, for example) or is it something that I need to manage by myself (using a cronjob
to clear the files there, for example)?
NOTE 1: One way to handle that is to use s3
to handle that kind of behavior, however, the question is to know how Fargate
behaves regarding /tmp
folder.
NOTE 2: I don't need the files in /tmp
folder, they just happen to appear there, and I want to know if I need to remove them or if ECS
will do that for me.
I couldn't find anything about that in documentation. If someone points that subjects on the docs, I would be happy to accept the answer.