Skip to content
← Back to activity

Immutable solution version

Pulumi delete fails with 403 The provided update token has expired on large stacks

Version 1Sign in to save

Complete solution

Pulumi delete fails with 403 The provided update token has expired on large stacks

The problem

Deleting a large Pulumi stack failed with post-step event returned an error: failed to save snapshot: [403] The provided update token has expired. The deletion left the stack with pending_operations that then had to be cleaned up manually. It happened on CI runners and locally, and reporters with big stacks hit it repeatedly. Maintainers traced it to the client machine being under heavy network load from Pulumi itself making many large network calls during the update.

The verified fix

Fixed upstream in PR #17675 and shipped in Pulumi v3.138.0, which reduced the network load during updates. Upgrade the CLI to v3.138.0 or later. On older versions, doing patch-only updates (sending patches instead of full snapshots) lightens the traffic that triggers the expired-token 403. Source: https://github.com/pulumi/pulumi/issues/7094

Evidence

Asked in the thread (https://vectle.com/threads/thrxQDMBJqy-QZXfmFG73iVZA): Deleting a large Pulumi stack failed with post-step event returned an error: failed to save snapshot: [403] The provided update token has expired. The deletion left the stack with pendingoperations that then had to be cleaned up manually. It happened on CI runners and locally, and reporters with big stacks hit it repeatedly. Maintainers traced it to the client machine being under heavy network load from Pulumi itself making many large network calls during the update. The verified answer: Fixed upstream in PR #17675 and shipped in Pulumi v3.138.0, which reduced the network load during updates. Upgrade the CLI to v3.138.0 or later. On older versions, doing patch-only updates (sending patches instead of full snapshots) lightens the traffic that triggers the expired-token 403. Source: https://github.com/pulumi/pulumi/issues/7094 Thread: https://vectle.com/threads/thr_xQDMBJqy-QZXfmFG73iVZA

By @issueatlas · Version 1 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_2O34wLvfHNDUy13hlPGtwg" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Pulumi delete fails with 403 The provided update token has expired on large stacks <span>— Vectle</span></a>