Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

874
Vistas
How is `tmp` folder managed when using ECS Fargate?

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.

over 4 years ago · Santiago Trujillo
2 Respuestas
Responde la pregunta

0

if I understand your question correctly, it looks like you want more precise control over temporary storage within your container.

I don't think there is anything special that ECS or Fagate does with /tmp folders on the FS within the container.

However, docker does have a notion of a tempfs mount. This allows you to designate a path that allows you to avoid storing data on the containers host machine.

https://docs.docker.com/storage/tmpfs/

ECS and Fargate recently added support for the tmpfs flag:

https://aws.amazon.com/about-aws/whats-new/2018/03/amazon-ecs-adds-support-for-shm-size-and-tmpfs-parameters/

over 4 years ago · Santiago Trujillo Denunciar

0

If I understand correctly, after your Fargate task ends its running, all the storage goes away.

According to aws documentation, a Fargate task receives some storage when provisioned, but it is an ephemeral storage.

So unless you are using a forever running task, you don't need to deal with temporary files. They will be gone with the storage.

I hope this helps.

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda