Process Flow - S3 lifecycle rules
Start: Object Created in S3 Bucket
Check Lifecycle Rules
Transition
Move to
End
When an object is created, S3 checks lifecycle rules to decide if it should move storage class, expire, or abort uploads.
Rule: - Transition to Glacier after 30 days - Expire after 365 days Object created on Day 0
| Day | Object State | Lifecycle Rule Checked | Action Taken | Resulting State |
|---|---|---|---|---|
| 0 | Standard Storage | Transition after 30 days? | No | Standard Storage |
| 1 | Standard Storage | Transition after 30 days? | No | Standard Storage |
| 29 | Standard Storage | Transition after 30 days? | No | Standard Storage |
| 30 | Standard Storage | Transition after 30 days? | Yes | Move to Glacier |
| 31 | Glacier Storage | Expire after 365 days? | No | Glacier Storage |
| 364 | Glacier Storage | Expire after 365 days? | No | Glacier Storage |
| 365 | Glacier Storage | Expire after 365 days? | Yes | Delete Object |
| 366 | Object Deleted | No further checks | N/A | No Object |
| Variable | Day 0 | Day 30 | Day 365 | Day 366 |
|---|---|---|---|---|
| Object Storage Class | Standard | Glacier | Glacier | Deleted |
| Object Exists | Yes | Yes | Yes | No |
S3 Lifecycle Rules: - Define actions on objects over time - Transition moves objects to cheaper storage after set days - Expiration deletes objects after set days - Rules apply automatically based on object age - Helps save cost and manage data lifecycle