diff --git a/internal/services/postgres/postgresql_flexible_server_resource.go b/internal/services/postgres/postgresql_flexible_server_resource.go index 6182127be373..e77c571b673e 100644 --- a/internal/services/postgres/postgresql_flexible_server_resource.go +++ b/internal/services/postgres/postgresql_flexible_server_resource.go @@ -335,7 +335,6 @@ func resourcePostgresqlFlexibleServer() *pluginsdk.Resource { }, CustomizeDiff: pluginsdk.CustomDiffWithAll(func(ctx context.Context, d *pluginsdk.ResourceDiff, v interface{}) error { - // as create_mode should never change after creation, we can ignore it when checking for version changes if d.HasChange("version") { oldVersionVal, newVersionVal := d.GetChange("version") @@ -350,7 +349,7 @@ func resourcePostgresqlFlexibleServer() *pluginsdk.Resource { if d.HasChange("create_mode") { // if create_mode is set to `Update`, then we can update it rather than force new - if d.Get("create_mode").(string) != string(servers.CreateModeForUpdateUpdate) { + if d.Get("create_mode").(string) == string(servers.CreateModeForUpdateUpdate) { return nil } d.ForceNew("create_mode")