How to fetch the AWS Route53 hosted zone id?

后端 未结 4 1344
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-13 11:46

I am newbie to Amazon Services and their API.

Using Amazon route53Clinet class, I know there is a method getHostedZone which get the Hosted Zone information on the

4条回答
  •  天涯浪人
    2021-01-13 12:25

    This will give you a list with hosted zones ID's.

    aws route53 list-hosted-zones | jq '.HostedZones| .[] | .Id'

提交回复
热议问题