# First, list hosted zones:
aws route53 list-hosted-zones # Optional pipe: jq '.HostedZones[].Id'
# Then, for each zone:
aws route53 list-resource-record-sets --hosted-zone-id /hostedzone/XXXXXXXX
- All route53 A and CNAME records in one command:
aws route53 list-hosted-zones | \
jq '.HostedZones[].Id' | tr -d '"' | \
while read zone; do \
aws route53 list-resource-record-sets --hosted-zone-id $zone | \
jq '.ResourceRecordSets[] | select(.Type == "A" or .Type == "CNAME") | .Name' | \
tr -d '"' | \
sed 's|\\\\052|*|g'; # replacing asterisk escape code with asterisk \
done
- Make an item in s3 available for public read:
aws s3api put-object-acl --bucket name-of-my-bucket --key item-in-the-bucket.html --acl public-read