Skip to content

Commit

Permalink
fix: Removed hash_extra_paths to have the same hash for multiple exec…
Browse files Browse the repository at this point in the history
…utors (#66)
  • Loading branch information
antonbabenko authored Oct 27, 2020
1 parent b260ffe commit b256c4b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion package.tf
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,14 @@ data "external" "archive_prepare" {
runtime = var.runtime
source_path = jsonencode(var.source_path)
hash_extra = var.hash_extra
hash_extra_paths = jsonencode(["${path.module}/package.py"])
hash_extra_paths = jsonencode(
[
# Temporary fix when building from multiple locations
# We should take into account content of package.py when counting hash
# Related issue: https://github.com/terraform-aws-modules/terraform-aws-lambda/issues/63
# "${path.module}/package.py"
]
)
}
}

Expand Down

0 comments on commit b256c4b

Please sign in to comment.