awslabs / rds-snapshot-tool

The Snapshot Tool for Amazon RDS automates the task of creating manual snapshots, copying them into a different account and a different region, and deleting them after a specified number of days
Apache License 2.0
341 stars 145 forks source link

Deployment question #25

Closed LijieZhou closed 5 years ago

LijieZhou commented 5 years ago

I am trying to have two copies of backup in my secondary account: one in the same region as the primary account(say, "us-west-2"), and the other in a different region(say, "us-east-1"). In my secondary/dest account, I deployed two snapshots_tool_rds_dest.json in us-west-2: one set destination_region equals to us-west-2 and the other equals to us-east-1. However, in us-west-2, the backup gets deleted every 30 minutes because the copy_remote from the other lambda thinks they are the intermediate copies as shown in here.

Did I misunderstand anything here? Is the setup correct if I want to have both same region and across region backup in the same secondary account?

mrcoronel commented 5 years ago

You are right, that's the way it works. You can't really do what you are trying to do with this tool. My only suggestion is to have one account where you copy across regions and another one where you keep them in the same region.