How can we set s3 lifecycle rule to delete the files form S3 bucket!

0

I am trying to delete files form my bucket as two .csv files will be pushed in my bucket daily and i want to delete both files after 14 or 16 hours, and next day the same activity will be repeated as 2 new files will be pushed and then deleted.

i think it only delete the files which get older then 24 hours if i am not wrong!

any suggestion please!!

preguntada hace 2 años541 visualizaciones
1 Respuesta
0

Leverage a Lambda with scheduled Cron to run the S3 Delete API for the objects.

profile pictureAWS
EXPERTO
Rob_H
respondido hace 2 años

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas