mirror of
https://github.com/yuriskinfo/cheat-sheets.git
synced 2025-12-21 13:23:11 +01:00
Added AWS CLI Route53 cheat sheet
This commit is contained in:
@@ -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`
|
||||||
|
|||||||
Reference in New Issue
Block a user