Skip to content

bash scripts using AWS CLI and JQ to bulk delete Route53 entries

Notifications You must be signed in to change notification settings

eddideku/aws-route53-bulk-delete

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

aws-route53-bulk-delete

bash scripts using AWS CLI and JQ to bulk delete Route53 entries

This is based off of the ReleaseHub article titled "How to Delete Hundreds or Thousands of Route53 DNS Entries" by Regis Wilson.

Usage

We assume you have AWS CLI Profiles setup

First script will query the AWS CLI for ResourceRecords and split them into individual files.

./route53-jq.sh [zonename] [profile] [maxitems] [valuequery]

./route53-jq.sh example.com myawsprofile 100 1.1.1.1

Next script will loop through all files and run the output JSON against the AWS CLI

./bulk-record-delete.sh example.com myawsprofile

About

bash scripts using AWS CLI and JQ to bulk delete Route53 entries

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages