Sub topic 2
Backup vaults: where recovery points are stored
This chapter assumes you can use the AWS CLI, understand IAM roles and policies, and know the basic AWS Backup model from the previous chapter. A backup vault is the container that holds your backups. Every backup job must name one.
What a vault is
A backup vault is a logical container in a single AWS account and Region. Each backup that AWS Backup creates is stored in a vault as a recovery point. The vault controls three things:
- Where backups live. A vault belongs to one Region. A backup created in
us-east-1lands in a vault inus-east-1. - How backups are encrypted. Each vault is associated with an AWS KMS key. The next chapter covers key choice.
- Who can touch backups. A vault can have an access policy and, optionally, Vault Lock. Later chapters cover both.
Backup plans and on-demand jobs refer to a vault by name, so the vault must exist before you create either one.
Create a vault
Create a vault and list the vaults in the current Region to confirm it exists:
aws backup create-backup-vault \
--backup-vault-name app-vault
aws backup list-backup-vaultsIf you omit --encryption-key-arn, AWS Backup encrypts the vault with the AWS managed key for AWS Backup. The output of list-backup-vaults shows the vault's ARN, the key ARN, and the number of recovery points it holds.
Design choices
Vault names must be unique within an account and Region, and you cannot rename a vault. Plan the layout before you create many.
| Approach | Use it when |
|---|---|
| One vault per environment, such as `prod-vault` and `dev-vault` | Environments need different access policies or retention limits |
| One vault per workload or team | Teams manage their own backups or need separate keys |
| A dedicated vault for copies | You send copies to another Region or account and want different protections there |
Separate vaults are useful because access policies, KMS keys and Vault Lock settings apply to the whole vault. If production and test backups share a vault, they share those settings.
A vault that still contains recovery points cannot be deleted. You must delete the recovery points first, and a locked vault may refuse that until retention ends.
Common errors
- The vault is in the wrong Region. A plan rule can only target a vault in the Region where the plan lives. If a job fails with a missing vault, check the Region first.
- The vault name is misspelled in the plan. The plan refers to the name as text, so a typo causes failed jobs, not a validation error at the time you save.
- You cannot delete the vault. Look for remaining recovery points with
list-recovery-points-by-backup-vault.
Exercise
A team wants production backups encrypted with a different KMS key and protected by a stricter access policy than development backups. How should you organize the vaults, and why?
Show answer
Create separate vaults, for example prod-vault and dev-vault. The KMS key, access policy and Vault Lock settings apply to a whole vault, so only separate vaults let production have different settings from development.