wget -cq https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip -P ${HOME}/Downloads
unzip -q ${HOME}/Downloads/awscli-exe-linux-x86_64.zip -d ${HOME}/Downloads/
rm -rf ${HOME}/Downloads/awscli-exe-linux-x86_64.zip
sudo ${HOME}/Downloads/aws/install
rm -rf ${HOME}/Downloads/aws
export AWS_PROFILE=chorke.academia
export AWS_PROFILE=chorke
aws ec2 describe-availability-zones
aws sts get-caller-identity
aws configure list
aws s3 ls
aws route53 list-hosted-zones --output json
aws route53 list-resource-record-sets --hosted-zone-id=Z2U6EL1ZO4QJ1T --output=json
ZONE_NAME=chorke.org
HOSTED_ZONE_ID=$(aws route53 list-hosted-zones --output json | jq -r ".HostedZones[] | select(.Name == \"${ZONE_NAME}.\") | .Id" | cut -d'/' -f3)
aws route53 list-resource-record-sets --hosted-zone-id=${HOSTED_ZONE_ID} --output=json | jq -jr '.ResourceRecordSets[]|select(.Type=="A")'
aws route53 list-resource-record-sets --hosted-zone-id=${HOSTED_ZONE_ID} --output=json | jq -jr '.ResourceRecordSets[]|select(.Type=="MX")'
aws route53 list-resource-record-sets --hosted-zone-id=${HOSTED_ZONE_ID} --output=json | jq -jr '.ResourceRecordSets[]|select(.Type=="NS")'
aws route53 list-resource-record-sets --hosted-zone-id=${HOSTED_ZONE_ID} --output=json | jq -jr '.ResourceRecordSets[]|select(.Type=="SOA")'
aws route53 list-resource-record-sets --hosted-zone-id=${HOSTED_ZONE_ID} --output=json | jq -jr '.ResourceRecordSets[]|select(.Type=="TXT")'
aws route53 list-resource-record-sets --hosted-zone-id=${HOSTED_ZONE_ID} --output=json | jq -jr '.ResourceRecordSets[]|select(.Type=="CNAME")'
aws route53 list-resource-record-sets --hosted-zone-id=${HOSTED_ZONE_ID} --output=json | jq -jr '.ResourceRecordSets[] | "\(.Name) \t\(.TTL) \t\(.Type) \t\(.AliasTarget?.DNSName)\n"'
aws route53 list-resource-record-sets --hosted-zone-id=${HOSTED_ZONE_ID} --output=json | jq -jr '.ResourceRecordSets[] | "\(.Name) \t\(.TTL) \t\(.Type) \t\(.ResourceRecords[]?.Value)\n"'