Skip to content

cloud: terraform output should gracefully handle 503 errors#35143

Merged
brandonc merged 2 commits intomainfrom
TF-15181-terraform-output-should-gracefully-handle-503-errors
May 13, 2024
Merged

cloud: terraform output should gracefully handle 503 errors#35143
brandonc merged 2 commits intomainfrom
TF-15181-terraform-output-should-gracefully-handle-503-errors

Conversation

@brandonc
Copy link
Copy Markdown
Contributor

@brandonc brandonc commented May 9, 2024

Fixes #35105

When outputs are not available while using cloud backend, terraform will now silently retry while logging attempts. If retries are canceled or time out after one minute, an error is displayed (See below for screenshots)

Target Release

1.9.x

Draft CHANGELOG entry

ENHANCEMENTS

  • terraform output with cloud block: terraform no longer suggests that data loss could occur when outputs are not available

Screenshots

Before:
Screenshot 2024-05-02 at 4 24 40 PM

After (With TF_LOG, canceled):
Screenshot 2024-05-06 at 11 21 45 AM

After (With TF_LOG, deadline exceeded):
Please note the actual message says "within the deadline" not actually "within the timeout"
Screenshot 2024-05-06 at 11 21 36 AM

@brandonc brandonc force-pushed the TF-15181-terraform-output-should-gracefully-handle-503-errors branch from 932f5e8 to 0efd586 Compare May 13, 2024 22:37
@brandonc brandonc merged commit dc3a040 into main May 13, 2024
@brandonc brandonc deleted the TF-15181-terraform-output-should-gracefully-handle-503-errors branch May 13, 2024 22:50
@github-actions
Copy link
Copy Markdown
Contributor

Reminder for the merging maintainer: if this is a user-visible change, please update the changelog on the appropriate release branch.

@github-actions
Copy link
Copy Markdown
Contributor

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

terraform output not display the outputs

3 participants