Created
August 3, 2022 16:01
-
-
Save cleydson/4ccf02651b3127e3c3366d3092d45e66 to your computer and use it in GitHub Desktop.
List all Route 53 records using AWS CLI
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
| for z in $(aws route53 list-hosted-zones|jq '.[] | .[] | .Id' | sed 's!/hostedzone/!!' | sed 's/"//g'); do | |
| echo $z; | |
| aws route53 list-resource-record-sets --hosted-zone-id $z >> recordsFile; | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment