Auto-sync: 2026-04-20 00:02
This commit is contained in:
43
wiki/concepts/Lifecycle-Policy.md
Normal file
43
wiki/concepts/Lifecycle-Policy.md
Normal file
@@ -0,0 +1,43 @@
|
||||
---
|
||||
title: "Lifecycle Policy"
|
||||
type: concept
|
||||
tags: [AWS, Storage, Cost-Optimization]
|
||||
sources: []
|
||||
last_updated: 2026-04-19
|
||||
---
|
||||
|
||||
## Definition
|
||||
生命周期策略是一种自动化规则,用于在不同存储层之间自动转换数据、设置保留策略和管理过期对象,无需手动操作。
|
||||
|
||||
## Key Features
|
||||
- 自动存储层转换:根据预设规则将数据从热存储移动到冷存储
|
||||
- 保留策略:设置快照和对象的保留期限
|
||||
- 过期清理:自动删除过期对象和不完整的分段上传
|
||||
- 成本优化:减少存储费用,优化存储支出
|
||||
|
||||
## AWS Services
|
||||
- **S3 Lifecycle Policies**:转换对象到 S3 Standard → Intelligent-Tiering → Glacier 层级
|
||||
- **EFS Lifecycle Policies**:将文件在标准层和不频繁访问层之间移动
|
||||
- **EBS Snapshot Lifecycle**:归档快照到 Archive 层,使用 DLM 或 AWS Backup
|
||||
|
||||
## Implementation
|
||||
```json
|
||||
{
|
||||
"Rules": [
|
||||
{
|
||||
"ID": "MoveToGlacier",
|
||||
"Status": "Enabled",
|
||||
"Filter": {"Prefix": "archive/"},
|
||||
"Transitions": [
|
||||
{"Days": 365, "StorageClass": "GLACIER"}
|
||||
],
|
||||
"Expiration": {"Days": 1825}
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
## Connections
|
||||
- [[S3-Intelligent-Tiering]] ← implements ← [[Lifecycle-Policy]]
|
||||
- [[EFS-Inrequent-Access]] ← implements ← [[Lifecycle-Policy]]
|
||||
- [[EBS-Snapshot-Archive]] ← uses ← [[Lifecycle-Policy]]
|
||||
Reference in New Issue
Block a user