code-dumps/aws/aws-route53-inventory.sh

5 lines
183 B
Bash
Executable File

#!/bin/bash
echo "ZoneName, IsPrivate, RecordCount"
aws route53 list-hosted-zones | jq -cr '.HostedZones[] | [.Name, .Config.PrivateZone, .ResourceRecordSetCount] | @csv' | tr -d \"