July 10, 2020
Managing multiple DNS zones with Terraform and Google Cloud DNS
Google Cloud DNS is a convenient way to manage DNS Zones. With Terraform, it’s possible to manage these Zones as code, usually by committing the terraform files to version control. However, setting up sub-zones has always been a bit tricky. I’ll use this blog post to document how to manage zones and sub-zones with CloudDNS and terraform.
To manage a zone, the resource google_dns_managed_zone can be used:
To add a sub-zone:
Read more