Skip to content

fix: remove source_code_hash to prevent plan failures; close artifact-packager ref issue#8

Merged
sgtoj merged 1 commit into
mainfrom
fix/resolve-artifact-rebuild-and-hash-issues
May 28, 2026
Merged

fix: remove source_code_hash to prevent plan failures; close artifact-packager ref issue#8
sgtoj merged 1 commit into
mainfrom
fix/resolve-artifact-rebuild-and-hash-issues

Conversation

@sgtoj

@sgtoj sgtoj commented May 28, 2026

Copy link
Copy Markdown
Member

Summary

Resolves two related issues caused by the artifact-packager integration:

Issue #4 — Update artifact-packager ref

The module ref was already bumped to v1.4.1 in commit 820e497, which includes the upstream fix for the coalesce(var.force_rebuild_id, timestamp()) forced-rebuild bug (cruxstack/terraform-docker-artifact-packager#7). This PR formally closes the issue.

Issue #6 — Remove source_code_hash

Removes the source_code_hash = filebase64sha256(...) argument from aws_lambda_function.this. This function requires the file to exist at plan time, which fails in CI environments where Docker is unavailable and the artifact zip is never built. The filename attribute alone is sufficient — Terraform detects content changes at apply time.

Closes #4
Closes #6

Remove the source_code_hash argument from aws_lambda_function.this to
prevent terraform plan failures when the artifact zip does not yet exist
(e.g. CI environments without Docker). The filename attribute alone is
sufficient — Terraform detects content changes at apply time.

The artifact-packager ref was already updated to v1.4.1 in a prior
commit, which resolved the forced-rebuild race condition.

Closes #4
Closes #6
@sgtoj sgtoj merged commit dfeb1c9 into main May 28, 2026
2 checks passed
@sgtoj sgtoj deleted the fix/resolve-artifact-rebuild-and-hash-issues branch May 28, 2026 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant