# Session report 2026-02-20 ## Issue The new gen_v2 Update template only used `plan.ID` when running modify. In Terraform update operations, `plan.ID` can be unknown, so the provider passed an empty instance ID and failed with "missing instance id for modify". ## Fix The Update template now reads both plan and state, then falls back to `state.ID` when `plan.ID` is null or unknown. The resolved instance ID is used for modify and for the subsequent state refresh. ## Why this should work `state.ID` is always known for an existing resource in Terraform state. Using it guarantees a valid instance ID during update, matching the previous generator behavior and preventing empty-ID modify calls.