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?

gefragt vor 2 Jahren997 Aufrufe
2 Antworten
1
Akzeptierte Antwort

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

profile pictureAWS
beantwortet vor 2 Jahren
profile picture
EXPERTE
überprüft vor 10 Monaten
profile pictureAWS
EXPERTE
überprüft vor 2 Jahren
  • 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
EXPERTE
beantwortet vor 2 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen