https://github.com/snooyen/r53-migrate-go
A CLI utility to aid the migration of R53 records from an old hosted zone to a new one.
https://github.com/snooyen/r53-migrate-go
aws aws-route53 golang
Last synced: 6 months ago
JSON representation
A CLI utility to aid the migration of R53 records from an old hosted zone to a new one.
- Host: GitHub
- URL: https://github.com/snooyen/r53-migrate-go
- Owner: snooyen
- Created: 2022-04-11T21:21:46.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-02-16T18:20:10.000Z (over 3 years ago)
- Last Synced: 2024-06-21T20:02:36.964Z (about 2 years ago)
- Topics: aws, aws-route53, golang
- Language: Go
- Homepage:
- Size: 17.6 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Route53 Migration Utility
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 zone
* `new.json` - A list of all records in the new hosted zone
* `missing.json` - A list of missing records in the new hosted zone
* `mismatched.json` - A list of mistmached records (same name and type but different property values)
# Usage
```
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
```
# Build and Run
## Prerequisites
- go version go1.17.6
```shell
$ 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.
```