Skip to content

Chore/trigger rebuild of lambda zips#2175

Merged
timburke-hackit merged 4 commits intomainfrom
chore/trigger-rebuild-of-lambda-zips
Mar 13, 2025
Merged

Chore/trigger rebuild of lambda zips#2175
timburke-hackit merged 4 commits intomainfrom
chore/trigger-rebuild-of-lambda-zips

Conversation

@timburke-hackit
Copy link
Contributor

Includes formatting changes to the scripts to trigger the null_resource - they remain functionally identical.

First run scenario:

  • Source files are changed, so null_resource triggers
  • Dependencies get installed
  • Zip file is created with both source files and dependencies
  • This complete zip file gets uploaded to S3

Subsequent runs (no source changes):

  • Same source files produce the same dir_sha1 hash
  • null_resource doesn't trigger (since the hash is unchanged)
  • A local zip gets created with only source files (no dependencies)
    • this is what was being uploaded and resulting in failures
  • Terraform sees that source_hash hasn't changed in the state, so it won't update the S3 object
  • Lambda continues using the original, complete zip from S3

@timburke-hackit timburke-hackit requested review from a team as code owners March 13, 2025 11:18
@sonarqubecloud
Copy link

@timburke-hackit timburke-hackit merged commit f1de16d into main Mar 13, 2025
6 checks passed
@timburke-hackit timburke-hackit deleted the chore/trigger-rebuild-of-lambda-zips branch March 13, 2025 12:09
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