From b70f42d79170659207e3ec3ea05bbfd0c012f23c Mon Sep 17 00:00:00 2001 From: Ramon Snir <r@mon.dev> Date: Thu, 3 Apr 2025 17:17:29 -0400 Subject: [PATCH] DNS record type change requires replacement --- internal/provider/dns_record_resource.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/provider/dns_record_resource.go b/internal/provider/dns_record_resource.go index 9e5496e..c253555 100644 --- a/internal/provider/dns_record_resource.go +++ b/internal/provider/dns_record_resource.go @@ -92,6 +92,9 @@ func (r *dnsRecordResource) Schema(_ context.Context, _ resource.SchemaRequest, "type": schema.StringAttribute{ Required: true, Description: "One of A, AAAA, ALIAS, CAA, CNAME, MX, NS, SPF, or TXT", + PlanModifiers: []planmodifier.String{ + stringplanmodifier.RequiresReplace(), + }, Validators: []validator.String{ stringvalidator.OneOf( "A",