By leolleo
Hey all,
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?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi there,
Just wanted to provide a quick update here. The API now supports setting disable_lets_encrypt_dns_records to disable this behavior.
https://docs.digitalocean.com/reference/api/api-reference/#operation/create_load_balancer
This has also been ported to the Terraform Provider as well:
https://registry.terraform.io/providers/digitalocean/digitalocean/latest/docs/resources/loadbalancer
Best,
Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.