Life Cycle Rule to move a subfolder of S3 Bucket

0

We need to move a subfolder of an S3 Bucket to Glacier Instant Retrieval and was hoping to confirm if i create a lifecycle rule which includes prefix foldername/, this will only move that folder specifically?

preguntada hace 2 años998 visualizaciones
2 Respuestas
1
Respuesta aceptada

It will apply to objects within the key name prefix foldername/ See Example 1

profile pictureAWS
respondido hace 2 años
profile picture
EXPERTO
revisado hace 10 meses
profile pictureAWS
EXPERTO
revisado hace 2 años
  • do you have to apply that prefix to the folder? Also can i remove the rule it is only run once meaning no further data will be added to that folder?

0

S3 is an object store. Every object in S3 has a unique key which comprises the bucket name, the prefix hierarchy and the object name. So there isn't really a folder structure like in a file system in S3. The prefix hierarchy may make it feel like you actually have files organized into folders. On the UI, you do see folders but those folders actually map to prefixes. So to answer your question, you don't need to map prefixes to folders.

profile pictureAWS
EXPERTO
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