Backup and restore Route53 zones, or transfer between AWS accounts.
Project description
Quickly backup and restore AWS Route53 DNS zones.
## Motivation
route53-transfer-ng started as a pull-request to [route53-transfer](https://github.com/cosmin/route53-transfer) and slowly turned into a port to boto3 of that software, and then finally a complete rewrite.
I intentionally avoided retaining compatibility with the original code. In fact, route53-transfer-ng does not use the CSV format anymore, as that wouldn’t easily allow support for all the Route53 routing policies and features.
## Installation
pip install route53-transfer-ng
## Usage
Backup the example.com zone to a YAML file:
route53-transfer-ng dump –format yaml example.com example.com.yaml
Use STDOUT instead of a file:
route53-transfer-ng dump –format yaml example.com -
Restore the example.com zone from a YAML file:
route53-transfer-ng load –format yaml example.com example.com.yaml
To perform a dry run load, add the –dry-run option switch. The command will show the changes that would be made to the R53 zone without carrying out any operation.
route53-transfer-ng –dry-run load example.com example.com.yaml
It’s possible to use upsert operations when performing a route53 change operation, instead of the default DELETE + CREATE of recordsets. To enable this behaviour, supply the –use-upserts option.
route53-transfer-ng –dry-run –use-upserts load example.com example.com.yaml
Use - as filename to load from STDIN instead.
Migrate between accounts:
Use the AWS_PROFILE environment variable to change the AWS account to be used by route53-transfer-ng. Dump from one account, load into another.
AWS_PROFILE=aws_account1 route53-transfer dump example.com test.yaml AWS_PROFILE=aws_account2 route53-transfer load example.com test.yaml
## Credits
Thanks to Cosmin Sterejan for the original [route53-transfer](https://github.com/cosmin/route53-transfer) that I used for some time as-is and then as base and inspiration for this boto3 “ng” version.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for route53-transfer-ng-1.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b826415d27d481c8bc79de3f0208ff44254881f04449e2c879072ad6b3adbad |
|
MD5 | 6fa86889d9f97e1fd20d63b4fd349f44 |
|
BLAKE2b-256 | a3950fde6e5573d7c54dc8212ce0196dfa5d1b6e67596ef8e7d87dbd492e57cd |
Hashes for route53_transfer_ng-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ab3a74f6d6bf4aa7097e8de0444a6ed8e617831c6d6e73830d55fba128ee6c0 |
|
MD5 | 99fb2331d9e36f6f9ae7474dd3ad80c7 |
|
BLAKE2b-256 | 839672f6d4fb5e131957547e6f4565acf0dfe348662bb3420b9e5317527808a4 |