Skip to content

Retry throttled AWS calls after stack deployment - #449

Merged
GrahamCampbell merged 2 commits into
4.xfrom
fix-post-deploy-throttling-retries
Sep 6, 2026
Merged

Retry throttled AWS calls after stack deployment#449
GrahamCampbell merged 2 commits into
4.xfrom
fix-post-deploy-throttling-retries

Conversation

@GrahamCampbell

@GrahamCampbell GrahamCampbell commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

After the stack reaches UPDATE_COMPLETE, deploy still issues CloudFormation, Lambda, API Gateway, and S3 calls to gather stack info, prune old versions, apply deletion protection and the stack policy, and clean up old artifacts. Those calls only had the SDK's five attempts, roughly four seconds of backoff on average, where v3 retried every call four more times with four to seven second backoff. Under sustained throttling from many concurrent deploys they fail with Rate exceeded and the CLI exits non-zero although the stack deployed. This wraps those calls in the retryOnThrottlingError helper that already protects stack polling, change set polling, and artifact uploads, and replaces the S3 list paginator with an explicit loop so each page is retried. Fixes #436.

@GrahamCampbell
GrahamCampbell merged commit f092ba8 into 4.x Sep 6, 2026
8 checks passed
@GrahamCampbell
GrahamCampbell deleted the fix-post-deploy-throttling-retries branch September 6, 2026 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

v4: Deploys fail with "Rate exceeded" after UPDATE_COMPLETE: post-deploy DescribeStacks and prune calls lack the throttling retry that monitor-stack has

1 participant