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]
----
aws route53 list-resource-record-sets --hosted-zone-id Z3HR6JS50CWURT --profile
awsadmin
aws route53 list-resource-record-sets --hosted-zone-id Z3HR6JS50CWURT
----
@@ -39,15 +38,13 @@ awsadmin
Show all and only A records from a zone:
----
aws route53 list-resource-record-sets --hosted-zone-id ZN36CWKHEDURT --profile
awsadmin --query "ResourceRecordSets[?Type == 'A'] "
aws route53 list-resource-record-sets --hosted-zone-id ZN36CWKHEDURT --query "ResourceRecordSets[?Type == 'A'] "
----
Show only records matching the given record value (here _www.yurisk.info_):
----
aws route53 list-resource-record-sets --hosted-zone-id ZN36CWKHEDURT --profile
awsadmin --query "ResourceRecordSets[?Name == 'www.yurisk.info.'] "
aws route53 list-resource-record-sets --hosted-zone-id ZN36CWKHEDURT --query "ResourceRecordSets[?Name == 'www.yurisk.info.'] "
----
NOTE: AWS returns maximum 100 items in one response. Use paging with `NextToken`