AWS Backup manages backups of many AWS services (RDS, Aurora, DynamoDB, EBS, EFS, S3 and more) from one place. Instead of configuring each database, you write a backup plan once and assign resources to it, for example every RDS database with a given tag.
| Component | Name in this lab | Purpose |
|---|---|---|
| IAM role | FCJ-rdspg-backup-role |
Lets AWS Backup create and restore recovery points |
| Backup vault | rdspg-backup-vault |
Stores and encrypts the recovery points |
| On-demand backup | — | A single backup, started now |
| Backup plan | rdspg-backup-plan, rule rdspg-daily |
Daily backup at 00:30, kept 7 days |
| Resource assignment | rdspg-tagged-resources |
Every RDS database with the tag backup-plan = rdspg-daily |
AWS Backup can create a default role for you. In this lab you create your own role, so that you see exactly which permissions AWS Backup gets.
Open the IAM console, choose Roles > Create role:

Enter AWSBackupServiceRolePolicyFor in the search box:
AWSBackupServiceRolePolicyForBackup.AWSBackupServiceRolePolicyForRestores.Choose Next.

On Name, review, and create:
FCJ-rdspg-backup-role
Scroll down:

If your AWS account requires a permissions boundary for new roles (like the shared account used to write this lab), set it in Set permissions boundary on the Add permissions page. It then appears as Boundary policy in the summary.
Open the AWS Backup console in the Region of your database. Choose Vaults > Create new vault:
rdspg-backup-vault(default) aws/backupChoose Create vault at the bottom of the page.

Choose Protected resources > Create on-demand backup:
rdspg-lab-db1 Days
Scroll down:
rdspg-backup-vaultFCJ-rdspg-backup-role.
The console warns that a retention period shorter than 7 days can cause additional charges. This applies to resource types with a minimum storage duration. For this lab, 1 day is enough, and you delete the recovery point in the Clean up step.
AWS Backup opens Jobs. After about 10 minutes, the job is Completed. Choose Vaults > rdspg-backup-vault:
rdspg-lab-db is Completed, with the backup type Snapshot.
Choose Backup plans > Create backup plan:
rdspg-backup-planrdspg-daily
Continue in the backup rule:
rdspg-backup-vault00:30 in your time zone.
Scroll down:
7 DaysChoose Create plan at the bottom of the page.

AWS Backup opens Assign resources:
rdspg-tagged-resourcesFCJ-rdspg-backup-role.
Scroll down:
backup-plan, Condition for value Equals, Value rdspg-dailyChoose Assign resources, then Continue in the confirmation box.

The tag condition is important. Without it, the plan backs up every RDS database in the account and the Region.
The backup plan is ready:
rdspg-daily stores the backups in rdspg-backup-vault.rdspg-tagged-resources uses FCJ-rdspg-backup-role.
Add the tag to the database. In the RDS console, choose rdspg-lab-db > Tags > Manage tags > Add new tag:
backup-planrdspg-daily
From now on, AWS Backup backs up rdspg-lab-db every day at 00:30. To add another database to the plan, you only add the same tag.