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?

asked a year ago972 views
2 Answers
1
Accepted Answer

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

profile pictureAWS
answered a year ago
profile picture
EXPERT
reviewed 10 months ago
profile pictureAWS
EXPERT
reviewed a year ago
  • 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
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions