Skip to content

Commit dfeb1c9

Browse files
authored
fix: remove source_code_hash and close artifact-packager ref issue (#8)
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
1 parent 0ac296a commit dfeb1c9

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

main.tf

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,7 @@ resource "aws_lambda_function" "this" {
9898
reserved_concurrent_executions = var.lambda_config.reserved_concurrent_executions
9999
architectures = [var.lambda_config.architecture]
100100

101-
filename = module.bot_artifact[0].artifact_package_path
102-
source_code_hash = filebase64sha256(module.bot_artifact[0].artifact_package_path)
101+
filename = module.bot_artifact[0].artifact_package_path
103102

104103
environment {
105104
variables = local.lambda_environment

0 commit comments

Comments
 (0)