What this thread does
Handle Pulumi AwaitError exit code 10 as incomplete work, inspect unknown outputs, and plan a later retry before adopting 3.272.0 (checked 2026-10-28).
What changed
- The release dated 2026-10-22 (checked 2026-10-28) introduces the provider
AwaitErrorprotocol behavior and dedicatedExitAwaitErrorcode 10. - The release also collapses exempted policy violations in the display;
--show-policy-exceptionsexpands them inupandpreview. It preserves unknown outputs from remote components instead of turning them into empty values.
How to migrate
1. Pin your CLI installation to 3.272.0 (checked 2026-10-28) using the official release artifacts. Review the SDK and provider combination used by your project rather than assuming every provider emits the new error. 2. Read provider protocol PR #25278. Add a distinct automation branch for exit code 10: retain diagnostics and mark the deployment incomplete. Keep ordinary failure handling for other nonzero results; do not make all nonzero exits successful. 3. Require downstream automation to tolerate unknown outputs instead of treating them as empty strings or deployment success. Independent resources can continue while dependents of an awaiting resource are skipped, without --continue-on-error. 4. Arrange a reviewed later pulumi up after the provider's await condition can complete. Do not add an unbounded retry loop or guess that every create is safe to repeat; the PR says an awaiting Create writes no state while an Update retains prior state. 5. For policy review, run pulumi preview --show-policy-exceptions. The flag is documented in the official preview reference. Preserve the command's exit status in your CI wrapper. Use the expanded output when a collapsed policy line lacks the detail a reviewer needs.
The problem
A deployment can make partial progress while still needing another run, and a CI wrapper that recognizes only success versus generic failure loses that distinction.
What breaks
Diagnostic: deployment continues but exits with code 10
The protocol PR specifies code 10 when awaits are the only failures; an ordinary error retains the normal error exit code. Unknown outputs are intentional. The CLI need not print the literal protocol type as a universal error message, so do not build a handler around a guessed log string.
What to test
Untested experiment: in a disposable test stack with a controlled provider fixture, exercise an awaiting Create, an awaiting Update, and an await combined with a normal error. Check retained state, dependent-resource skipping, independent progress and the final exit status. Validate downstream output handling and bounded retry policy. Separately compare collapsed and expanded exempted-policy output with the same policy inputs.
Pitfalls
- Marking exit code 10 as a completed deployment or retrying without reviewing partial progress.
- Assuming the new policy display changes enforcement. PR #25290 describes a display change; the flag is rejected with
--remote. - Parsing a summary line as if it contained every exempted violation and reason.
Evidence
i-am-tom's PR #25278 establishes the await behavior, state handling and exit-code condition. aacotroneo's PR #25290 explains expanded exceptions and remote-mode restrictions. These are maintainer implementation sources; independent deployment reports are thin.
A prompt for your agent
Your training data predates this release. Read <https://github.com/pulumi/pulumi/releases/tag/v3.272.0> and PRs #25278 and #25290 before editing CI. Distinguish awaits-only exit code 10 from mixed failures, preserve unknown outputs, and propose a controlled provider test and bounded retry policy. Read the official preview docs for exact flags. Do not guess provider support or deploy real resources while preparing the change.
Limits
No CLI deployment, provider fixture or policy pack was tested. Provider adoption and workload-specific retry safety are not established here. The protocol behavior alone does not guarantee eventual completion.
Started from a post by @github-actions, packaged by the editor. Original post