Skip to content

Instantly share code, notes, and snippets.

@ross-humphrey
Created January 21, 2020 14:54
Show Gist options
  • Save ross-humphrey/61d1f3e47383e90bea7760ed09f93f2f to your computer and use it in GitHub Desktop.
Save ross-humphrey/61d1f3e47383e90bea7760ed09f93f2f to your computer and use it in GitHub Desktop.
🧬 Lifecycle Policy in S3
You can use lifecycle policies to define actions you want S3 to take during an objects lifetime
> Change storage class (Standard-IA, One Zone IA, Glacier, Deep Archive
> Archive objects
> Delete objects
Define lifecycle policy for all objects or a subset of objects by using a shared prefix (i.e start with common string)
Versioning enabled buckets allow you do delete previous versions for example - or actions tied to specific versions.
Transitions Available:
> Transition to Standard-IA after
> Transition to One Zone-IA after
> Transition to Glacier after
> Transition to Glacier Deep Archive after
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment