Closed benjamin9fin closed 11 months ago
I can't provide example code in this case but it's easy to reproduce just by creating several lambdas that have the same source_path
.
Good point on updating the error message. I don't have time for that, but maybe someone else can do it.
i got same error when you use for_each for the lambda module
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.
Description
When using a shared codebase for multiple lambdas, it's easy to run into this issue mentioned in the docs:
Unfortunately the error message you get in this case does not point to this issue at all:
In my case, this seems to be because I have ~8 lambdas each with identical zip archives due to shared codebase. The writes to the zip archives are corrupting each other because they all have the same filename due to identical content hash.
There's no way to really know this from the error message though. You have to find that section in the docs to get the explanation.
What would be great is if the error reporting could be improved in this case. If we could detect and mention this known issue here in the error message then it could potentially save hours of debugging.