I want my S3 bucket to be version controlled for protection against accidental modifications. Also I want that objects in my S3 be archived to Glacier after 30 days.
When I went to enable versioning, it said
Once enabled, Versioning cannot be disabled and you will not be able to add Lifecycle Rules for this bucket.
But, can I add a lifecycle rule for the bucket and then enable versioning.
Also, how will restore work in that case. Say for example, on day 1 I have in my bucket files A, B, C. On day 20 I have file A, B1, C1, D. On day 30 the objects are moved to S3. Now when I do a restore say on day 40, will I still have all the versions of file B in my bucket ?
Amazon S3 Now Supports Lifecycle Rules for Versioning
Amazon S3 now supports lifecycle rules for versioning. This means that you can now use lifecycle rules for S3 buckets regardless of whether they are enabled for versioning or not.