Current implementation of the cicustom field has ForceNew set:
|
func SchemaCiCustom() *schema.Schema { |
|
return &schema.Schema{ |
|
Type: schema.TypeString, |
|
ForceNew: true, |
|
Optional: true, |
|
DiffSuppressFunc: func(k, old, new string, d *schema.ResourceData) bool { |
|
return sdkCloudInitCustom(new).String() == sdkCloudInitCustom(old).String() |
|
}} |
|
} |
This causes relatively trivial from perspective of both cloud-init and Proxmox API changes to destroy VMs (and cause loss of state). This can be amended in other ways, but those are workarounds, while it would be much easier to have cicustom allow updates instead of recreation.
Current implementation of the
cicustomfield hasForceNewset:terraform-provider-proxmox/proxmox/Internal/resource/guest/qemu/cloudinit/schema.go
Lines 35 to 43 in f4d11ca
This causes relatively trivial from perspective of both cloud-init and Proxmox API changes to destroy VMs (and cause loss of state). This can be amended in other ways, but those are workarounds, while it would be much easier to have
cicustomallow updates instead of recreation.