You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your request related to a new offering from AWS? No.
Is your request related to a problem? Somewhat, yes. Please describe.
When calling the lambda module multiple times in parallel (i.e. creating the same lambda function in multiple regions), the python package hash is the same for each instance. As such, the builds/[hash].zip file names are the same. When the first instance completes the builds/[hash].zip file is deleted. So when the other instance gets to the point of uploading creating the lambda function (which includes uploading the zip file), the instance creation errors out.
It would be great if this module supported parallel instance creation.
Multiple lambda function creation all using the same package.
Describe alternatives you've considered.
I've attempted to form and modify the package.py (around lines 1058 and 1090) to make the zip file name format be builds/[aws_region]-[hash].zip, however, I'm unable to get it to work.
I've also tried adding dependon criteria in the calling module, but the lambda functions aren't created everytime and dependon requires static (not dynamic) content. So this doesn't work either.
Additional context
The text was updated successfully, but these errors were encountered:
If you need to reuse one package multiple times, you will have to create it once and then reference it in your lambda function via local_existing_package
If you want to build similar packages (eg, one per region), you have to specify different hash_extra argument to distinct packages.
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? No.
Is your request related to a problem? Somewhat, yes. Please describe.
When calling the lambda module multiple times in parallel (i.e. creating the same lambda function in multiple regions), the python package hash is the same for each instance. As such, the builds/[hash].zip file names are the same. When the first instance completes the builds/[hash].zip file is deleted. So when the other instance gets to the point of uploading creating the lambda function (which includes uploading the zip file), the instance creation errors out.
It would be great if this module supported parallel instance creation.
Describe the solution you'd like.
Multiple lambda function creation all using the same package.
Describe alternatives you've considered.
I've attempted to form and modify the package.py (around lines 1058 and 1090) to make the zip file name format be builds/[aws_region]-[hash].zip, however, I'm unable to get it to work.
I've also tried adding dependon criteria in the calling module, but the lambda functions aren't created everytime and dependon requires static (not dynamic) content. So this doesn't work either.
Additional context
The text was updated successfully, but these errors were encountered: