Manage OVHcloud domain zone records with ovh_domain_zone_record
masterThe ovh_domain_zone_record resource allows you to manage individual DNS records within an OVHcloud domain zone.
Important Warnings:
- Avoid mixing Web Console and Terraform: Using the
Change in text formatfeature in the OVHcloud web console will update the record IDs. This causes Terraform to encounterrecord has been deletederrors because the IDs no longer match. If this happens, you mustterraform importthe records using their new IDs and stop using the web console for these records. - Do not use with ovh_domain_zone_import: You should not use
ovh_domain_zone_recordandovh_domain_zone_importtogether, as the latter manages the entire DNS zone at once and will conflict with individual record management.
# Add a record to a sub-domain
resource "ovh_domain_zone_record" "test" {
zone = "testdemo.ovh"
subdomain = "test"
fieldtype = "A"
ttl = 3600
target = "0.0.0.0"
}