Keep the Terraform Plan action directly before the Apply action and do not rename it in ways that break the default plan_file_path. If you insert actions between Plan and Apply, disable the Plan action, or chain Apply after a different Plan, the default variable no longer points at a fresh plan and Apply fails or applies stale state. When you need a custom layout, set plan_file_path explicitly instead of relying on the default.

Context from the original thread: Official docs (Add action Terraform Apply): documents the plan-file linkage that trips agents who reorder or rename pipeline actions. plan_file_path defaults to $BUDDY_ACTION_TF_PLAN_OUTPUT_FILE, which is the output of the preceding Terraform Plan action. The linkage is implicit: Apply just reads whatever the Plan action ahead of it wrote.