Description

The Copy RDS Snapshots action will copy one or more RDS snapshots within a single region, or from one region to another. For example, using this action, all snapshots newer than 3 days can be copied from Oregon to Ireland.

Settings

Please see Common Action Settings for a description of settings common to all action types.

Snapshot Identification Method

Indicates the method with which to identify which RDS snapshots are to be copied. Valid options are:

  • By Snapshot ID - Copies a single snapshot by it's ID
  • All - Copies all images
  • By Instance ID - Copies all snapshots based on their origin RDS instance ID
  • By EC2 Tag - Copies all snapshots based on an EC2 tag value

Snapshot Id

Required if Snapshot Identification Method is "By Snapshot Id". Indicates the ID of the RDS snapshot to be copied. The RDS snapshot must reside in the source region.

Instance Id

Required if Snapshot Identification Method is "By Instance Id". Indicates the ID of the RDS instance whose snapshots are to be copied. The RDS instance must reside in the source region.

EC2 Tag Name

Required if Snapshot Identification Method is "By EC2 Tag". Indicates the name of an EC2 tag to compare.

EC2 Tag Value

Required if Snapshot Identification Method is "By EC2 Tag". Indicates the value of an EC2 tag to compare.

Snapshot Type

Indicates whether automated, manual or all snapshots should be copied.

Newer Than

Indicates the number of days back from the execution time of the action in which any snapshots created will be copied.

Account Number

This is the 12-digit account number of the AWS account owning the source RDS snapshot.

Target Region

Indicates the region in which a new RDS snapshot should be created which is a copy of the original.

New Snapshot ID

When copying the snapshot, the new snapshot will have a new ID applied. Specify the new ID in this field. Macros can be used to include run-time data. See below.

Conflict Resolution Method

Indicates what should happen if an RDS snapshot with the same ID is found in the target region. Valid values are:

  • Skip Copy
  • Delete and Re-copy
  • Fail and Stop
  • Fail and Continue

Copy EC2 Tags

When enabled, any EC2 resource tags associated with the source RDS snapshot will be copied to the new RDS snapshot.

Extra EC2 Tags

Optional. Extra EC2 tags can be assigned to the new snapshot. Click "Add Tag" to add a tag and fill the tag data. Any number of tags can be set, although Amazon EC2 has a limit of 10 (including the Name tag). Macros can be used in the tag values to include run-time data. See below.

Macros

The following macros can be used to include some run-time information.

$(DATE)

Date of image in year-month-day format

$(TIME)

Time of image in 24-hour format

$(DOW)

Day of the week, as a short name.

  • Sun
  • Mon
  • Tue
  • Wed
  • Thu
  • Fri
  • Sat

$(DAYOFWEEK)

Day of the week, as a long name.

  • Sunday
  • Monday
  • Tuesday
  • Wednesday
  • Thursday
  • Friday
  • Saturday

$(DAYOFMONTH)

Day of the month.

$(WEEKOFMONTH)

Week of the month, starting at day 1 of the month.

  • Day 1 - 7 is week 1
  • Day 8 - 14 is week 2
  • Day 15 - 21 is week 3
  • Day 22 - 28 is week 4
  • Day 29 - 31 is week 5

$(INVWEEKOFMONTH)

Week to the end of the month, ending at the last day of the month. For example, for a 31-day month:

  • Day 25 - 31 is week 1
  • Day 18 - 24 is week 2
  • Day 11 - 17 is week 3
  • Day 4 - 10 is week 4
  • Day 1 - 3 is week 5

$(MOY)

Month of the year, as a short name.

  • Jan
  • Feb
  • Mar
  • Apr
  • May
  • Jun
  • Jul
  • Aug
  • Sep
  • Oct
  • Nov
  • Dec

$(MONTHOFYEAR)

Month of the year, as a long name.

  • January
  • February
  • March
  • April
  • May
  • June
  • July
  • August
  • September
  • October
  • November
  • December

$(SNAPSHOTID)

ID of the original snapshot.

$(REGION)

Region of the original image.

Macros are case-sensitive. For example, $(Time) is not valid. $(TIME) must be used.

Amazon Commands Used

The following Amazon AWS commands are used. The access key should have permission to execute all of them.

  • rds:CopyDBSnapshot
  • rds:DeleteDBSnapshot
  • rds:DescribeDBSnapshots
  • rds:ListTagsForResource
Did this answer your question?