Skip to content

fix(terraform): fail on S3 errors other than a missing plan - #376

Merged
tobias0106 merged 1 commit into
mainfrom
fix/terraform-plan-fetch-errors
Oct 8, 2026
Merged

tobias0106 merged 1 commit into
mainfrom
fix/terraform-plan-fetch-errors

Conversation

@tobias0106

Copy link
Copy Markdown
Contributor

Follow-up to #375. Apply's first plan lookup ran aws s3 cp ... 2>/dev/null, so any failure, including expired credentials or AccessDenied, fell through to the PR-head lookup and ended as No reviewed plan, pointing at recover instead of the real cause.

Now only a 404 falls through to the PR-head lookup; any other S3 error fails the step with the error text.

Tested the helper under set -eu with a stubbed aws: success uses the plan, 404 falls back, 403 fails with the S3 error.

🤖 Generated with Claude Code

…f reporting no reviewed plan

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@tobias0106
tobias0106 marked this pull request as ready for review October 8, 2026 12:47
@tobias0106
tobias0106 requested a review from a team as a code owner October 8, 2026 12:47
@tobias0106
tobias0106 requested review from chandrashekar-dhar and removed request for a team October 8, 2026 12:47
@tobias0106
tobias0106 merged commit 596db5d into main Oct 8, 2026
1 check passed
@tobias0106
tobias0106 deleted the fix/terraform-plan-fetch-errors branch October 8, 2026 12:55
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