Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
Terraform digitalocean_loadbalancer creating A record for root domain
I was reading the docs at https://registry.terraform.io/providers/digitalocean/digitalocean/latest/docs/resources/loadbalancer and made a code for creating a load balancer, a couple servers, a mysql managed database and some structures like VPC and projects.
The issue is, when creating the load balancer, the module calls the api, and then it creates a A record for the root domain. So, if I manage the domain foo.com, where the record (A, foo.com) points to (192.168.10.10), I get another extra (A, foo.com) record pointing to the load balancer ip address.
The issue is documented here https://github.com/digitalocean/terraform-provider-digitalocean/issues/456 and I only figured out the issue after being alerted about an outage on our systems pointing to the original (A, foo.com) record. Do you people know any workaround on that?