Lesson 1 of 3 AWS Backup and Data Versioning

Centralising Backups with AWS Backup Plans and Vaults

This lesson explains how AWS Backup centralises and automates backups across services, usually the least-effort answer when a question asks to back up several resource types on a schedule with retention rules.

Learning outcomes

After completing this lesson, you will be able to:

  • Identify the resources AWS Backup supports.
  • Create backup plans and resource assignments.
  • Protect vaults with access policies and Vault Lock.

Supported resources

AWS Backup protects EC2 instances (as AMIs), EBS volumes, RDS and Aurora, DynamoDB, EFS, FSx, S3, Storage Gateway volumes, SAP HANA on EC2, VMware VMs and CloudFormation stacks, among others. Some services must be opted in per Region in the AWS Backup settings. For DynamoDB, enabling advanced features adds cross-account and cross-Region copy and cold storage. For S3, AWS Backup requires versioning on the bucket and supports continuous backups with point-in-time restore for up to 35 days and periodic snapshots.

Backup plans and resource assignments

A backup plan contains one or more backup rules. Each rule sets a schedule (cron or a frequency such as hourly, daily or weekly), a backup window (start within and complete within times), a lifecycle (transition to cold storage after some days, delete after a longer period; cold storage requires at least 90 days of storage after transition), the target vault, copy actions to vaults in other Regions or accounts, and whether to enable continuous backup for point-in-time recovery (RDS, Aurora, S3, SAP HANA). Resource assignments select resources by tag (for example backup=daily), by resource ARN or by type, with conditions, so new resources are protected automatically when tagged. AWS Backup uses an IAM role (the default AWSBackupDefaultServiceRole or a custom role) to create and restore backups.

{
  "BackupPlanName": "prod-daily-monthly",
  "Rules": [
    {"RuleName": "daily", "TargetBackupVaultName": "prod-vault",
     "ScheduleExpression": "cron(0 3 * * ? *)", "StartWindowMinutes": 60, "CompletionWindowMinutes": 360,
     "Lifecycle": {"DeleteAfterDays": 35},
     "CopyActions": [{"DestinationBackupVaultArn": "arn:aws:backup:us-west-2:111122223333:backup-vault:dr-vault",
                      "Lifecycle": {"DeleteAfterDays": 35}}]},
    {"RuleName": "monthly", "TargetBackupVaultName": "prod-vault",
     "ScheduleExpression": "cron(0 4 1 * ? *)",
     "Lifecycle": {"MoveToColdStorageAfterDays": 30, "DeleteAfterDays": 2555}}
  ]
}
Match the pairs

Backup plan parts

Exam skills 2.3.1

Match each part of an AWS Backup plan with what it defines.

Log in to try this activity Interactive activities are free with an account.

Vaults, access policies and Vault Lock

A backup vault stores recovery points, encrypted with a KMS key that is independent of the source resource's key for most resource types. A vault access policy can deny actions such as backup:DeleteRecoveryPoint to everyone except a break-glass role. AWS Backup Vault Lock enforces write-once-read-many (WORM) retention: in governance mode users with special permissions can still change or remove the lock, while in compliance mode, after a grace period of at least three days, nobody, including the root user and AWS, can delete recovery points before their retention ends or remove the lock. A logically air-gapped vault stores recovery points in an AWS-owned account, locked in compliance mode and encrypted with AWS-owned or customer keys, and can be shared with other accounts through AWS RAM for recovery even if the source account is compromised.

The following diagram compares the two Vault Lock modes.

AWS Backup Vault Lock modes. In governance mode, users with special permissions can still change or remove the lock. In compliance mode, after a grace period of at least three days, nobody, including the root user and AWS, can delete recovery points before their retention ends or remove the lock.
Test the configuration in governance mode before applying compliance mode.
True or false

Protecting vaults

Exam skills 2.3.1 · 4.2.2

Check how vaults protect recovery points.

Log in to try this activity Interactive activities are free with an account.
Worked example

Centralising backups

A company protects EC2, RDS, DynamoDB and EFS in each workload account with custom scripts and wants one consistent approach with an immutable copy in a separate account. It enables cross-account management in AWS Backup from the management account, creates an organisation backup policy that deploys a daily plan selecting resources tagged backup=daily, retaining 35 days locally and copying each recovery point to a vault in a central backup account. That vault has Vault Lock in compliance mode with a minimum retention of 35 days. AWS Backup Audit Manager frameworks report whether every tagged resource was backed up as required.

Check yourself

Which feature prevents anyone, including administrators, from deleting recovery points early?

Show answer

AWS Backup Vault Lock in compliance mode.

Exam Tips

Remember for the exam

  • Backup plans define schedule, window, lifecycle and copy rules; assign resources by tag.
  • Cold storage needs at least 90 days after transition.
  • Vault Lock compliance mode prevents anyone deleting recovery points early.
  • Copy recovery points to other Regions and accounts for DR and isolation.
  • Organization backup policies deploy plans across member accounts.