Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 803 Bytes

README.md

File metadata and controls

19 lines (14 loc) · 803 Bytes

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