Sub topic 17
Controlling cost and applying best practices
This chapter assumes you have read the earlier chapters on vaults, plans, lifecycle settings and monitoring. It shows where AWS Backup costs come from and which habits keep both cost and risk under control.
Where the cost comes from
AWS Backup has no charge for the service itself. You pay for the storage your recovery points use, and for some operations:
- Warm storage is billed per GB-month. The price varies by resource type.
- Cold storage is cheaper per GB-month, but only some resource types support it. Recovery points moved to cold storage carry a minimum retention of 90 days.
- Restores are billed per GB restored for some resource types.
- Cross-Region copies incur data transfer charges, and the copy is stored again in the destination vault.
- Continuous backup stores changes for point-in-time recovery, so it grows with how much data you change.
Check the current AWS Backup pricing page for exact rates. They differ by Region and resource type.
Levers that reduce cost
Retention is the biggest lever. Every extra day of retention keeps another set of recovery points. Compare the two rules below.
{
"BackupPlanName": "tiered-retention",
"Rules": [
{
"RuleName": "DailyShortRetention",
"TargetBackupVaultName": "app-vault",
"ScheduleExpression": "cron(0 5 ? * * *)",
"StartWindowMinutes": 60,
"CompletionWindowMinutes": 180,
"Lifecycle": {
"DeleteAfterDays": 14
}
},
{
"RuleName": "MonthlyLongRetention",
"TargetBackupVaultName": "app-vault",
"ScheduleExpression": "cron(0 5 1 * ? *)",
"StartWindowMinutes": 60,
"CompletionWindowMinutes": 360,
"Lifecycle": {
"MoveToColdStorageAfterDays": 30,
"DeleteAfterDays": 365
}
}
]
}The daily rule keeps only 14 days of recovery points. The monthly rule keeps one point per month for a year and moves it to cold storage after 30 days. Cold storage requires DeleteAfterDays to be at least 90 days after the move, which this rule satisfies. Backups of the same resource are incremental for many services, so frequent schedules cost less than full copies would.
Other levers:
- Back up only what you need. Tag resources deliberately so the selection does not capture test volumes or scratch data.
- Match the schedule to your RPO. Hourly backups of data that you can recreate waste money.
- Remove orphaned recovery points. Recovery points created by on-demand jobs without a lifecycle never expire, so always set
--lifecycle. - Limit copies. Copy to another Region or account only for workloads that need disaster recovery.
Best practices
- Use separate vaults by sensitivity or retention, so access policies and Vault Lock apply cleanly.
- Use customer managed KMS keys for important vaults, and plan key access for cross-account copies.
- Keep a copy in a different account and Region to survive account compromise or a Regional event.
- Use tag-based assignment so new resources are protected automatically.
- Turn on notifications and Backup Audit Manager so failed jobs and drift are noticed.
- Run restore tests on a schedule. A backup you have never restored is unproven.
- Manage plans as code, for example with CloudFormation or Terraform, and use organization backup policies for consistency.
How the pieces fit
Exercise
A team runs hourly backups of a scratch EBS volume with a 365-day retention, and also started on-demand backups without a lifecycle. Name three changes that cut cost without reducing protection of important data.
Show answer
Move scratch volumes out of the backup selection by changing tags, or reduce their schedule and retention to match their RPO. Replace the 365-day retention with a short daily rule and a monthly long-term rule that uses cold storage. Add --lifecycle DeleteAfterDays=N to on-demand backups, and delete the existing recovery points that have no expiry.