Repository navigation
fix(ci): pass every module's Lambda zips from plan to apply - #140
Merged
Merged
Conversation
The apply job only downloaded lambdas/builds/, so applying the saved plan failed once a Lambda lived in another module (auth_claims in identity/): reading ZIP file identity/builds/auth_claims.zip: no such file. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Terraform Plan🚧 Changes detected — Plan: 2 to add, 4 to change, 0 to destroy. Plan outputLLM ReviewRisk: 🟡 MEDIUM Plan adds 2 resources (auth_claims Lambda and its Cognito invoke permission) and updates 4 in place (Cognito user pool pre-token-generation trigger, app_auth_sync and team_provisioner IAM policies, team_provisioner Lambda code); 0 destroys.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Applying #137 and #138 failed (run 39978752602):
reading ZIP file (identity/builds/auth_claims.zip): no such file or directory.The plan job uploads only
terraform/platform/lambdas/builds/as thelambda-zipsartifact. #138 added a Lambda in theidentitymodule, whose zip is built atidentity/builds/. A saved plan doesn't rebuildarchive_fileoutputs, so the apply job needs every zip.What changed
${TF_ROOT}/*/builds/*.zip(paths relative toTF_ROOT), and fail if nothing matches.${TF_ROOT}/, so each zip lands in its own module'sbuilds/.Checks
actionlint. The real check is this PR's own merge run, which must apply the pending #137/#138 changes (10 to add, 30 to change, MEDIUM).
🤖 Generated with Claude Code