Terraform digitalocean_loadbalancer creating A record for root domain

Posted January 25, 2021 481 views
APILoad BalancingTerraformDigitalOcean API and CLI (doctl)

Hey all,

I was reading the docs at 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, where the record (A, points to (, I get another extra (A, record pointing to the load balancer ip address.

The issue is documented here and I only figured out the issue after being alerted about an outage on our systems pointing to the original (A, record. Do you people know any workaround on that?

Submit an answer

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!