title: Can I use S3 lifecycle policy and versioning at the same time?
body: <p>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.</p>
  
  <p>When I went to enable versioning, it said</p>
  
  <blockquote>
    <p>Once enabled, Versioning cannot be disabled and you will not be able to add Lifecycle Rules for this bucket.</p>
  </blockquote>
  
  <p>But, can I add a lifecycle rule for the bucket and then enable versioning. </p>
  
  <p>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 ?</p>