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?

已提问 2 年前998 查看次数
2 回答
1
已接受的回答

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

profile pictureAWS
已回答 2 年前
profile picture
专家
已审核 10 个月前
profile pictureAWS
专家
已审核 2 年前
  • 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
专家
已回答 2 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则