Function not found error is not properly retried when creating an aws_lambda_function
#25440
Labels
bug
Addresses a defect in current functionality.
eventual-consistency
Pertains to eventual consistency issues.
service/lambda
Issues and PRs that pertain to the lambda service.
Community Note
Terraform CLI and Terraform AWS Provider Version
v1.1.7
v4.17.1
Affected Resource(s)
Terraform Configuration Files
We have the lambda function defined in a shared module, and we have a ton of them. I think this error isn't related to a specific lambda function config. However, here is a snippet of what that resource looks like in our template
Debug Output
Expected Behavior
The lambda function should be deployed successfully on a clean deployment
Actual Behavior
The lambda function fails to be deployed with the error specified in the debug output.
I took a look at CloudTrail and found three
GetFunction20150331v2
events for the given function there.There timestamps were:
2022-06-16T21:48:52Z
2022-06-16T21:48:39Z
2022-06-16T21:48:38Z
It looks like these 3 series with the timeout of 14 seconds was not enough?
Redacted events from CloudTrail
Steps to Reproduce
Cross your fingers and run
terraform apply
for a lambda function in a clean environment (nonincremental deployment). If it takes AWS too much time to deploy this function, you will see theFunction not found
error.The text was updated successfully, but these errors were encountered: