Skip to content

Latest commit

 

History

History
76 lines (55 loc) · 2.09 KB

README.md

File metadata and controls

76 lines (55 loc) · 2.09 KB

route53copy, copies resource records between two AWS Route53 accounts

route53copy copies resource records from one AWS account to another. It creates a ChangeResourceRecordSet with UPSERT for all ResourceRecords of the source account and sends it to the destination account.

The top-level SOA and NS are not included in the change set since they should already exist in the destination account.

The domain must already exist in both accounts and AWS Named Profiles must be configured for both the source account and the destination account.

Installation

Homebrew Installation on OS X

$ brew tap andersjanmyr/tap
$ brew install route53

route53copy is a single binary. Install it by right-clicking and Save as... or with curl.

Links

Curl

# OS X
$ curl -L https://github.com/andersjanmyr/route53copy/releases/download/v1.1.1/route53copy-osx \
  > /usr/local/bin/route53copy

# Linux
$ curl -L https://github.com/andersjanmyr/route53copy/releases/download/v1.1.1/route53copy-linux \
  > /usr/local/bin/route53copy

# Make executable
$ chmod a+x /usr/local/bin/route53copy

Usage

$ route53copy --help
Usage: route53copy [options] <source_profile> <dest_profile> <domain>
  -dry
        Don't make any changes
  -help
        Show help text
  -version
        Show version
$ route53copy aws_profile1 aws_profile2 example.com
Number of Records:  55
53 records in 'example.com' are copied from aws_profile1-dev to aws_profile2
{
  Comment: "Importing ALL records from aws_profile",
  Id: "/change/C3QI8LAP4H5G9",
  Status: "PENDING",
  SubmittedAt: 2015-09-25 08:47:19.908 +0000 UTC
}

Release Notes

A list of changes are in the RELEASE_NOTES.