Added AWS CLI Route53 cheat sheet

This commit is contained in:
Yuri Slobodyanyuk
2023-01-23 10:36:00 +00:00
parent a150119eab
commit 3d65070aaf

View File

@@ -30,8 +30,7 @@ This command returns _zone-id_ you will need in future queries.
[source, bash] [source, bash]
---- ----
aws route53 list-resource-record-sets --hosted-zone-id Z3HR6JS50CWURT --profile aws route53 list-resource-record-sets --hosted-zone-id Z3HR6JS50CWURT
awsadmin
---- ----
@@ -39,15 +38,13 @@ awsadmin
Show all and only A records from a zone: Show all and only A records from a zone:
---- ----
aws route53 list-resource-record-sets --hosted-zone-id ZN36CWKHEDURT --profile aws route53 list-resource-record-sets --hosted-zone-id ZN36CWKHEDURT --query "ResourceRecordSets[?Type == 'A'] "
awsadmin --query "ResourceRecordSets[?Type == 'A'] "
---- ----
Show only records matching the given record value (here _www.yurisk.info_): Show only records matching the given record value (here _www.yurisk.info_):
---- ----
aws route53 list-resource-record-sets --hosted-zone-id ZN36CWKHEDURT --profile aws route53 list-resource-record-sets --hosted-zone-id ZN36CWKHEDURT --query "ResourceRecordSets[?Name == 'www.yurisk.info.'] "
awsadmin --query "ResourceRecordSets[?Name == 'www.yurisk.info.'] "
---- ----
NOTE: AWS returns maximum 100 items in one response. Use paging with `NextToken` NOTE: AWS returns maximum 100 items in one response. Use paging with `NextToken`