-
Notifications
You must be signed in to change notification settings - Fork 226
Open
Description
Problem
It seems that the application of lambda states to all functions, including zip-file based lambdas, prevents from deploying as previously with lambda deploy
. Several lambdas that I was able to deploy perfectly last week do not deploy now.
Error
The error I'm getting is the following
botocore.errorfactory.ResourceConflictException: An error occurred (ResourceConflictException) when calling the UpdateFunctionConfiguration operation: The operation cannot be performed at this time. An update is in progress for resource: arn:aws:lambda:eu-west-3:xxx:function:my-lambda
Observations
It seems that right after calling the client.update_function_code
method, the LastUpdateStatus
from the lambda's configuration stays at InProgress
, thus the subsequent call to client.update_function_configuration
is refused by the API.
I've tried adding a simple time.sleep(120)
right after the call to client.update_function_code
, and it seems to work : after waiting the value of LastUpdateStatus
goes back to Successful
, and the deployment goes fine afterwards.
mbremerkamp, rashadmoarref, gdvalderrama, dan-gaspari-ef, anddimario and 2 morembremerkamp
Metadata
Metadata
Assignees
Labels
No labels