Report this

What is the reason for this report?

How Do I Automate DNS Record Creation for My DigitalOcean Droplets Using Terraform?

Posted on August 29, 2024

I’m working with Terraform to deploy my infrastructure on DigitalOcean, and I want to automate the creation of DNS records for each Droplet I set up.

Is there a way to have Terraform automatically add an A record for each Droplet’s IP address in my DigitalOcean domain zone? Ideally, I’d like the DNS records to be created or updated whenever I apply changes.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.