Created
June 6, 2018 02:44
-
-
Save technion/664c8655df8a7b781d4f5518b8c1a540 to your computer and use it in GitHub Desktop.
Export all Route 53 zones
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
zones = `./cli53-linux-amd64 l --profile d53`.lines | |
zones.each do |zone| | |
domain = zone.split(/\s+/)[1] | |
`./cli53-linux-amd64 export #{domain} --profile d53 > #{domain}.zone` | |
puts domain | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment