https://github.com/theworkflow/route53-zone-file-exporter
Export AWS Route53 hosted zone data as a zone file
https://github.com/theworkflow/route53-zone-file-exporter
Last synced: 6 months ago
JSON representation
Export AWS Route53 hosted zone data as a zone file
- Host: GitHub
- URL: https://github.com/theworkflow/route53-zone-file-exporter
- Owner: theworkflow
- License: mit
- Created: 2019-09-09T13:55:36.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2022-02-12T13:34:06.000Z (over 4 years ago)
- Last Synced: 2024-10-18T06:42:34.564Z (over 1 year ago)
- Language: JavaScript
- Size: 79.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# route53-zone-file-exporter
[][version]
[][build]
[][license]
Export Route53 hosted zone record sets into a zone file
## Install
`$ npm install -g route53-zone-file-exporter`
### CLI Usage
```
Usage: route53-zone-file-exporter [options]
Options:
-V, --version output the version number
-z, --zoneId Route53 hosted zone ID
--hostedZoneId Route53 hosted zone ID (same as -z flag)
-o --output Output path to store zone file
--accessKeyId AWS accessKeyId
--secretAccessKey AWS secretAccessKey
-h, --help output usage information
```
### API Usage
```javascript
const exporter = require('route53-zone-file-exporter')
const options = {
zoneId: 'AWSRoute53ZoneID',
ttl: 3600,
output: './exportedZoneFile'
}
// For full configuration options for aws config
// https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/Route53.html#constructor-property
const awsConfig = {}
exporter(options, awsConfig)
.then(zoneFile => console.log(zoneFile))
.catch(err => console.error(err))
```
## Contributing
Contributions welcome! Please read the [contributing guidelines](CONTRIBUTING.md) first.
## License
[MIT](LICENSE)
[version]: https://www.npmjs.com/package/route53-zone-file-exporter
[build]: https://circleci.com/gh/theworkflow/route53-zone-file-exporter
[license]: https://raw.githubusercontent.com/theworkflow/route53-zone-file-exporter/master/LICENSE