Skip to content

fix: improve timeout handling for long-running CloudFormation stacks#163

Merged
kddejong merged 1 commit intoaws-actions:developfrom
kddejong:fix/timeout
Jan 21, 2026
Merged

fix: improve timeout handling for long-running CloudFormation stacks#163
kddejong merged 1 commit intoaws-actions:developfrom
kddejong:fix/timeout

Conversation

@kddejong
Copy link
Contributor

  • Change default timeout from 12 hours to 5h50m (safe for GitHub Actions 6-hour limit)
  • Make timeout-in-minutes parameter functional for waiter timeout (not just CloudFormation API)
  • Add graceful timeout handling with warning instead of failure
  • Return stack ID on timeout so users can monitor progress in AWS Console
  • Add unit tests for timeout behavior

Issue #, if available:

Description of changes:

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

- Change default timeout from 12 hours to 5h50m (safe for GitHub Actions 6-hour limit)
- Make timeout-in-minutes parameter functional for waiter timeout (not just CloudFormation API)
- Add graceful timeout handling with warning instead of failure
- Return stack ID on timeout so users can monitor progress in AWS Console
- Add unit tests for timeout behavior

Fixes aws-actions#150 - RDS Aurora and other long-running deployments will now exit gracefully
with a warning instead of timing out and failing after 6 hours.
{ StackName: stackName }
)
try {
await waitUntilStackOperationComplete(

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did we want to add a the stack status inside the waitUntilStackOperationComplete logs?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Disregard:

core.info(`Stack status: ${status}`)

@kddejong kddejong merged commit 6b236ac into aws-actions:develop Jan 21, 2026
0 of 6 checks passed
@kddejong kddejong deleted the fix/timeout branch January 21, 2026 16:01
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.

2 participants