RDS Cross Region DR fails with Exception: Cannot copy more than 5 snapshots across regions
You may see the following errors in the CPM logs when cross region RDS DR copies fail to successfully copy to the DR region.
ERROR: cpm_copy_dbsnapshot(aws_rds_utils.py:217) Exception: Cannot copy more than 5 snapshots across regions (SnapshotQuotaExceeded)
INFO: start_copy_region(dr_rds.py:429) RDS DR We reached the max limit of snapshot copy requests for region (your-target-region) (policy Policy_name,in DR account). Exception Cannot copy more than 5 snapshots across regions
To avoid this limitation you can stagger your policies so you are not attempting to copy more than the allowed RDS snapshots cross region at a time. If you have a policy with more than 5 RDS databases in it then you can split them up into separate policies. Also check to ensure that you do not have any errors in AWS, to do this check your RDS snapshots in the target region to see if any of them seem stuck or have a status of "error" or "pending" for a long time, they may need to be deleted.
Related Articles
Cross region copy of RDS snapshots may fail with error: RDS DR copy snapshot failed (in Backup account). No matching KMS alias in target region
Issue: The Following error may appear in the CPM Server logs: ERROR: start_copy_region(dr_rds.py:301) RDS DR copy snapshot failed (in Backup account). No matching KMS alias on target region (source EU (Frankfurt), target Asia Pacific (Singapore), RDS ...
Cross-Account and Cross-Region DR of an encrypted RDS database may fail
If cross-region and cross-account backup of an encrypted RDS database is successful, but fails in the cross-region cross-account DR copy, you may see the following error in the cpm logs: ERROR: start_copy_region(dr_rds.py:381) RDS DR copy_snapshot ...
Cross-region DR copy of encrypted snapshot may fail with "Copy failed due to an AWS limitation regarding default encryption key” error
DR of encrypted snapshots may fail with the following error in the Backup log: Error - <DR Policy>, copy snapshot failed (in Backup account) due to an AWS limitation regarding default encryption key source <source region>, target <target region>, ...
Cross-Region DR RDS backup may fail with "Copy failed due to an AWS limitation regarding default encryption key” error
RDS DR backup of encrypted snapshots between different regions may fail with the following error in the Backup log: Error - RDS DR, copy snapshot failed (to DR account) due to an AWS limitation regarding default encryption key (source US East (Ohio), ...
EBS/RDS DR & Recovery with KMS key
When copying cross account an EBS/RDS Volume encrypted with custom KMS, a KMS key should also be available in the other account. There are 2 ways that CPM uses for checking KMS key - Alias & Tag KMS Tag When using custom tag, you are telling CPM to ...