Created
August 13, 2024 20:59
-
-
Save thedoc31/96b8b40a21e111379513132e11b7d5f6 to your computer and use it in GitHub Desktop.
Search all AWS zones in an account for a particular value
This file contains hidden or 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
Need to obtain a list of all valid zone IDs for the account first. Can run from CLI or CloudShell | |
while read zone || [[ -n $zone ]]; do echo $zone && aws route53 list-resource-record-sets --hosted-zone-id $zone --query "ResourceRecordSets[?ResourceRecords[?Value == '<your_value>']"; done <your_zone_list.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment