A CLI utility to aid the migration of R53 records from an old hosted zone to a new one.
Outputs 4 JSON files:
old.json
- A list of all records in the old hosted zonenew.json
- A list of all records in the new hosted zonemissing.json
- A list of missing records in the new hosted zonemismatched.json
- A list of mistmached records (same name and type but different property values)
Usage of ./bin/r53-migrate:
--aws-profile-new string AWS profile to use for new records
--aws-profile-old string AWS profile to use for old records
--dump-json Dump json (default true)
--hosted-zone-name-new string Hosted zone name to use for new records (default "mydomain.com.")
--hosted-zone-name-old string Hosted zone name to use for old records (default "mydomain.com.")
--skip-new Skip new records
- go version go1.17.6
$ make build
$ ./bin/r53-migrate \
--aws-profile-old=my-old-aws-profile
--aws-profile-new=my-new-aws-profile
--hosted-zone-name-old=mydomain.com.
--hosted-zone-name-new=mydomain.com.