Artificial intelligent assistant

Route53 Nameに合ったIDを取りたいが、存在しないものが表示される `--dns-name` ID `augment.site` IDID **:** aws --profile myplofile route53 list-hosted-zones-by-name --dns-name augment.site | jq -r ".HostedZones[0].Id"

ID

>
> aws --profile myplofile route53 list-hosted-zones-by-name --dns-name augment.site | jq -r ".HostedZones[0].Id"
>




aws --profile myplofile route53 list-hosted-zones-by-name --dns-name augment.site




* * *

> ID

AWSCLI`list-hosted-zones-by-name``ListHostedZonesByName` API

> Retrieves a list of your hosted zones in lexicographic order.

DNS NameDNS Namehosted zonehosted zone id`example.com`hosted zone id


aws --profile myplofile route53 list-hosted-zones \
--query 'HostedZones[?Name==`example.com.`].Id' --output text

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy 28b8d956afa607e6de8e6911f73b6ebb