Skip to content

Commit 454852d

Browse files
committed
Allow existing powerdns_records to be updated instead of destroyed & recreated
1 parent b26c0eb commit 454852d

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

powerdns/resource_powerdns_record.go

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import (
1212
func resourcePDNSRecord() *schema.Resource {
1313
return &schema.Resource{
1414
Create: resourcePDNSRecordCreate,
15+
Update: resourcePDNSRecordCreate,
1516
Read: resourcePDNSRecordRead,
1617
Delete: resourcePDNSRecordDelete,
1718
Exists: resourcePDNSRecordExists,
@@ -23,31 +24,31 @@ func resourcePDNSRecord() *schema.Resource {
2324
"zone": {
2425
Type: schema.TypeString,
2526
Required: true,
26-
ForceNew: true,
27+
ForceNew: false,
2728
},
2829

2930
"name": {
3031
Type: schema.TypeString,
3132
Required: true,
32-
ForceNew: true,
33+
ForceNew: false,
3334
},
3435

3536
"type": {
3637
Type: schema.TypeString,
3738
Required: true,
38-
ForceNew: true,
39+
ForceNew: false,
3940
},
4041

4142
"ttl": {
4243
Type: schema.TypeInt,
4344
Required: true,
44-
ForceNew: true,
45+
ForceNew: false,
4546
},
4647
"records": {
4748
Type: schema.TypeSet,
4849
Elem: &schema.Schema{Type: schema.TypeString},
4950
Required: true,
50-
ForceNew: true,
51+
ForceNew: false,
5152
Set: schema.HashString,
5253
},
5354

0 commit comments

Comments
 (0)