Closed glenthomas closed 6 months ago
This issue has been automatically marked as stale because it has been open 30 days with no activity. Remove stale label or comment or this issue will be closed in 10 days
This issue was automatically closed because of stale in 10 days
I'm going to lock this issue because it has been closed for 30 days β³. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Is your request related to a new offering from AWS?
N/A
Is your request related to a problem? Please describe.
I want this module to build the lambda deployment package, but I also need the source code hash to be consistent to avoid problems when running a diff on Terraform plans for the same source code. The built-in zip functionality for this module produces inconsistent hashes (or archive filename if that's not the same thing..?).
Describe the solution you'd like.
I would like to use the same zip technique as exists in timo-reymann/deterministic-zip. This utility will create uniform zip packages by overwriting file metadata like the last modified date time and adding files to the archive in a consistent order.
Describe alternatives you've considered.
My module configuration to build the package looks like this, but source code hashes are inconsistent:
I would like to do something like this, but not sure how
This results in this error:
I have tried using
:zip
for the first command anddeterministic-zip
for the last:This results in this error:
Additional context