Sub topic 17
Controlling cost and applying best practices
This chapter assumes you have already built vaults, plans, rules and resource assignments in the earlier chapters. You should also know how lifecycle settings and cross-Region copies work. Here you will see what drives an AWS Backup bill and how to cut it without weakening recoverability.
What you pay for
AWS Backup has no fee of its own for plans, rules or vaults. You pay for the following:
- Warm storage: per GB-month for each recovery point, at a rate that depends on the resource type.
- Cold storage: a lower per-GB-month rate for supported resource types, with a 90-day minimum.
- Restore: a per-GB charge for some resource types.
- Cross-Region copies: data transfer out of the source Region, plus storage in the destination.
- Continuous backup: storage for the retained change history.
- Related services: KMS key and request charges, and EventBridge or SNS usage.
Check current rates on the AWS Backup pricing page, because they differ by Region and resource type.
Most recovery points are incremental. The first backup of a resource is full, and later ones store only changed data. This means a longer retention period costs less than a linear estimate suggests, but it also means a single deleted recovery point may free less space than you expect.
The biggest cost mistake: no expiry
A rule without DeleteAfterDays keeps its recovery points until someone deletes them. A plan that ran for a year with no lifecycle has a year of backups, and the bill grows every month. Always set a retention period on every rule and every copy action, and make it match a stated recovery requirement.
Recovery points also outlive the resource. If you delete an EC2 instance or an RDS database, its existing recovery points stay in the vault and keep costing money until their lifecycle expires.
Tier retention to recovery needs
Recent backups are the ones you restore from most often. Older backups mostly satisfy compliance. Use several rules with different frequencies and retention periods instead of one long-lived daily rule.
The plan below keeps 35 days of dailies in warm storage, then monthly backups that move to cold storage after 30 days and are deleted after 365 days. It also tags each recovery point for cost allocation.
{
"BackupPlanName": "tiered-retention",
"Rules": [
{
"RuleName": "Daily35",
"TargetBackupVaultName": "app-vault",
"ScheduleExpression": "cron(0 5 ? * * *)",
"StartWindowMinutes": 60,
"CompletionWindowMinutes": 180,
"Lifecycle": {
"DeleteAfterDays": 35
},
"RecoveryPointTags": {
"cost-center": "payments",
"tier": "daily"
}
},
{
"RuleName": "Monthly365",
"TargetBackupVaultName": "app-vault",
"ScheduleExpression": "cron(0 5 1 * ? *)",
"StartWindowMinutes": 60,
"CompletionWindowMinutes": 360,
"Lifecycle": {
"MoveToColdStorageAfterDays": 30,
"DeleteAfterDays": 365
},
"RecoveryPointTags": {
"cost-center": "payments",
"tier": "monthly"
}
}
]
}Create it with aws backup create-backup-plan --backup-plan file://tiered.json, using whatever filename you saved it under.
Cold storage rules and traps
Cold storage is cheaper per GB but has constraints:
- 90-day minimum:
DeleteAfterDaysmust be at leastMoveToColdStorageAfterDaysplus 90. In the plan above, 30 + 90 = 120, and 365 satisfies that. A rule with a move at 30 days and deletion at 60 days is rejected. - Early deletion: if you delete a cold recovery point before 90 days in cold storage, you are still charged for the full 90 days.
- Support varies: only some resource types can transition to cold storage, such as EBS, EFS and DynamoDB. Check the feature availability table for the type you protect.
- Restore behavior: restoring from cold storage costs more per GB and takes longer than restoring from warm storage. Don't put backups there if your RTO depends on a fast restore.
- Continuous backups: point-in-time recovery data cannot move to cold storage, and its retention is capped at 35 days.
Cold storage pays off only for data you keep for months and rarely restore. For a 35-day retention period it never applies.
Choosing a tier
The diagram shows how to decide where a backup requirement belongs.
Find and remove cost you do not need
List the largest and oldest recovery points in a vault with a CLI query:
aws backup list-recovery-points-by-backup-vault \
--backup-vault-name app-vault \
--query "sort_by(RecoveryPoints, &BackupSizeInBytes)[-10:].[RecoveryPointArn,ResourceType,BackupSizeInBytes,CreationDate]" \
--output tableTo expire an existing recovery point sooner, shorten its lifecycle:
aws backup update-recovery-point-lifecycle \
--backup-vault-name app-vault \
--recovery-point-arn <recovery-point-arn> \
--lifecycle DeleteAfterDays=14To remove one immediately, use aws backup delete-recovery-point with the same vault name and ARN. This fails if the vault is locked and the recovery point is inside the minimum retention period. Never delete in bulk without checking the ARNs and sizes first, because a deleted recovery point cannot be recovered.
Control what gets backed up
- Select by tag, and review the tag set. Tag-based selection is convenient but can pull in resources nobody meant to protect, such as scratch volumes. Audit which resources a selection matches.
- Exclude disposable data. Temporary and cache volumes, build artifacts and rebuildable replicas rarely need backups.
- Consolidate frequency. Hourly backups of low-change data add recovery points but little protection. Match frequency to your RPO, not to habit.
- Limit copies. Each cross-Region or cross-account copy is a second set of storage charges plus transfer fees. Copy only the rules whose data must survive a Region or account loss, and give each copy its own retention.
Operational best practices
- Separate vaults by purpose. Use different vaults for different retention classes or data sensitivity. Vault Lock and access policies apply per vault, and separate vaults make cost review easier.
- Use a dedicated KMS key per vault where policy requires it. Remember that a cross-account copy must be restorable, so the destination needs access to a key it can use.
- Set windows deliberately. A start window that is too short causes jobs to expire. A completion window that is too short cancels long jobs and wastes the work already done.
- Test restores on a schedule. A backup that has never been restored is an assumption. Restore a sample recovery point, measure the time against your RTO, and verify the data.
- Alert on failures. Subscribe to job failure and expiry events through SNS or EventBridge, as covered in the monitoring chapter.
- Tag for allocation. Use
RecoveryPointTagsor cost allocation tags so that Cost Explorer can attribute backup storage to teams. - Manage as code. Keep plans and selections in CloudFormation, Terraform or organization backup policies so changes are reviewed.
Common errors
| Symptom | Likely cause | Fix |
|---|---|---|
| Plan creation fails with a lifecycle error | `DeleteAfterDays` is less than cold-storage move plus 90 | Raise the deletion age or lower the move age |
| Bill keeps growing after retiring a service | Recovery points remain after resource deletion | List the vault and expire or delete them |
| Unexpected transfer charges | Cross-Region copy action on a busy plan | Copy only the needed rule, and review the copy schedule |
| Early-deletion charge for cold storage | Recovery point deleted before 90 days in cold | Plan the lifecycle so cold recovery points live at least 90 days |
Exercise
A rule moves recovery points to cold storage after 14 days and deletes them after 60 days. Why does AWS Backup reject it, and what is the smallest valid DeleteAfterDays?
Show answer
Deletion must be at least 90 days after the move to cold storage. With a move at 14 days, the smallest valid DeleteAfterDays is 14 + 90 = 104.
Exercise
You deleted an RDS database last month, but your AWS Backup charges did not drop. What explains this, and how do you stop the charges?
Show answer
Recovery points persist after the source resource is deleted and keep incurring storage charges until their lifecycle expires. List the vault's recovery points, then either shorten their lifecycle with update-recovery-point-lifecycle or remove them with delete-recovery-point, unless a locked vault's minimum retention blocks it.