hosted zone — private or public
Oct 24, 2024
How to know if a hosted zone is private or public?
aws route53 get-hosted-zone --id ABCDEFGHIJKLMNOPQRSTUVWXYZ
{
"HostedZone": {
"Id": "/hostedzone/ABCDEFGHIJKLMNOPQRSTUVWXYZ",
"Name": "blah.tld.",
"CallerReference": "terraform-*******************",
"Config": {
"Comment": "Managed by Terraform",
"PrivateZone": false
},
"ResourceRecordSetCount": 322
},
"DelegationSet": {
"NameServers": [
"ns-blah.co.uk",
"ns-more-blah.net",
"ns-blah-blah-and-bla.org",
"ns-few-more-blas.com"
]
}
}
That line PrivateZone: false
indicates that the hosted zone is public