Skip to content

Brightside56/cli53-remove

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

cli53-remove

Mass records/zones deletion process in AWS Route53 is very annoying process. If you're using AWS webui and you need to delete zone, you have to remove DNS-records one by one first to get a possibility to remove zone. To automate this I've created simple bash script over cli53 utility for mass removing route53 zones with their records

READ FIRST!!!

  • Current version of script was tested to work against cli53 v0.8.16 (but might work with other versions)
  • Use script carefully on your own risk, because under some circumstances or you might delete something useful :D

HOW-TO:

First you need to install cli53 utility using instructions here. Then download script, make it executable. Then run it and specify domain names or part of domain names of zones you want to delete as arguments to

$ ./cli53-remove.sh domain1 domain2.com 3dom

In example above all zones containing in its name "domain1" or "domain2.com" "3dom" will be removed from your route53. Or just

$ ./cli53-remove.sh domain5.com

If you need only remove records, but keep zone itself, you can comment out following line in script

cli53 delete ${line};

About

Script for mass removal zones in AWS Route53

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages