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?

demandé il y a 2 ans997 vues
2 réponses
1
Réponse acceptée

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

profile pictureAWS
répondu il y a 2 ans
profile picture
EXPERT
vérifié il y a 10 mois
profile pictureAWS
EXPERT
vérifié il y a 2 ans
  • 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
EXPERT
répondu il y a 2 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions