{"record":{"id":"e75d6d1a5758947b","repo":"hashicorp/terraform","slug":"errrunoverridden","errorCode":"errRunOverridden","errorMessage":"overridden using the UI or API","messagePattern":"overridden using the UI or API","errorType":"console","errorClass":null,"httpStatus":null,"severity":"info","filePath":"internal/cloud/errors.go","lineNumber":21,"sourceCode":"\npackage cloud\n\nimport (\n\t\"errors\"\n\t\"fmt\"\n\t\"strings\"\n\n\t\"github.com/hashicorp/terraform/internal/tfdiags\"\n\t\"github.com/zclconf/go-cty/cty\"\n)\n\n// String based errors\nvar (\n\terrApplyDiscarded                    = errors.New(\"Apply discarded.\")\n\terrDestroyDiscarded                  = errors.New(\"Destroy discarded.\")\n\terrRunApproved                       = errors.New(\"approved using the UI or API\")\n\terrRunDiscarded                      = errors.New(\"discarded using the UI or API\")\n\terrRunOverridden                     = errors.New(\"overridden using the UI or API\")\n\terrApplyNeedsUIConfirmation          = errors.New(\"Cannot confirm apply due to -input=false. Please handle run confirmation in the UI.\")\n\terrPolicyOverrideNeedsUIConfirmation = errors.New(\"Cannot override soft failed policy checks when -input=false. Please open the run in the UI to override.\")\n)\n\n// Diagnostic error messages\nvar (\n\tinvalidWorkspaceConfigMissingValues = tfdiags.AttributeValue(\n\t\ttfdiags.Error,\n\t\t\"Invalid workspaces configuration\",\n\t\tfmt.Sprintf(\"Missing workspace mapping strategy. Either workspace \\\"tags\\\" or \\\"name\\\" is required.\\n\\n%s\", workspaceConfigurationHelp),\n\t\tcty.Path{cty.GetAttrStep{Name: \"workspaces\"}},\n\t)\n\n\tinvalidWorkspaceConfigMisconfiguration = tfdiags.AttributeValue(\n\t\ttfdiags.Error,\n\t\t\"Invalid workspaces configuration\",\n\t\tfmt.Sprintf(\"Only one of workspace \\\"tags\\\" or \\\"name\\\" is allowed.\\n\\n%s\", workspaceConfigurationHelp),\n\t\tcty.Path{cty.GetAttrStep{Name: \"workspaces\"}},","sourceCodeStart":3,"sourceCodeEnd":39,"githubUrl":"https://github.com/hashicorp/terraform/blob/d32a084675427f5ac3f7d2868578ef8b2c1dc525/internal/cloud/errors.go#L3-L39","documentation":"A sentinel error set in backend_common.go:471 when the cloud backend's polling goroutine detects a policy override confirmation run is no longer awaiting local input — meaning it was overridden externally via UI/API. Similar to errRunApproved, this is checked at backend_common.go:417 and :421 with 'err != errRunOverridden' to allow the flow to continue when the override happened out-of-band. It signals the run transitioned away from RunPolicyOverride/RunPostPlanAwaitingDecision without being discarded.","triggerScenarios":"During a cloud-backed operation where a soft policy check failed and the CLI is prompting for override confirmation, someone overrides the policy via the TFC/TFE UI or API. The polling loop detects the status change and returns errRunOverridden.","commonSituations":"A team member overrides a soft-failed policy check in the UI while another operator's CLI session is deciding whether to override locally; automated policy override via API during a CLI-driven run.","solutions":["No fix needed — the run continues because it was overridden externally.","If you want local-only override control, avoid overriding in the UI during active CLI sessions.","Coordinate policy override decisions across team members."],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":"// Non-fatal — the backend continues when override happens externally.\n// if errors.Is(err, cloud.ErrRunOverridden) { /* policy overridden externally, proceed */ }","preventionTips":["Establish a clear team policy for who overrides soft-failed checks (UI vs CLI).","Use workspace locks during policy-sensitive operations.","Monitor TFC audit logs for external policy overrides."],"tags":["terraform","cloud","policy","run-lifecycle","confirmation","concurrency"],"backgroundTag":null,"analyzedSha":"d32a084675427f5ac3f7d2868578ef8b2c1dc525","analyzedAt":"2026-08-11T18:43:52.779Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}