DevOps > AWS 1 second ago

Understanding S3 prefix

Understanding S3 prefix

365 views . 1 answers . 0 likes . 0 shares Yemi Odunade 1 answers

I was trying to configure lifecycle rule for logs in my bucket per the assignment below.  I uploaded the logs to a "logs" folder created at the root level of the bucket

https://devopsrealtime.com/deploy-html-based-static-web-application-on-aws-ec2/#comment-23

If i want to specify a prefix to filter for only the log files instead of using the option of selecting all objects for the transition rule, what will the prefix be. 

logs/  OR  logs/* OR logs

profilepic.png

Answers (1)


profilepic.png
PR Reddy Best Answer 2 years ago

S3 allows you to organize the data in folder structure using prefix and '/' as delimiter. If you would like to include all the objects under the logs folder while configuring the life cycle rules then the recommended prefix is "logs/".

365 views . 0 shares