Terraform Plugin Framework ForceNew

You are looking for the function func RequiresReplace(), which acts exactly like ForceNew on SDKv2. You can read the doc here:

https://pkg.go.dev/github.com/hashicorp/terraform-plugin-framework/tfsdk#RequiresReplace

2 Likes