-
-
Notifications
You must be signed in to change notification settings - Fork 692
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lambda in Docker publishing error #91
Comments
I am also experiencing this issue |
I can't reproduce this issue by running examples/container-image combined with examples/with-vpc. Probably, this issue is related - hashicorp/terraform-provider-aws#5154 Can you see if your execution log looks similar to this one?
|
I was able to reproduce the problem by setting the publish argument to true and the source_code_hash argument with the latest digest from the ECR repository (so the latest change of the image is used). Since source_code_hash has changed, terraform will trigger the UpdateFunctionCode method causing the lambda to move to pending state while the image undergoes an optimization process for running on Lambda.
Once the apply has finished (with Error publishing Lambda Function message), you can check that the lambda status is still in pending:
|
@mauriciocm9 Thank you that you have also opened an issue in the AWS provider - hashicorp/terraform-provider-aws#17153 |
This issue is fixed in Terraform AWS provider v3.29.0 (ref - hashicorp/terraform-provider-aws#17153). |
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. |
Module code:
Error log:
Workaround - run
terragrunt apply
again after update will be done.The text was updated successfully, but these errors were encountered: