aws-lambda-typescript icon indicating copy to clipboard operation
aws-lambda-typescript copied to clipboard

Lambda deploy generates errors now

Open ammulder opened this issue 4 years ago • 4 comments

It seems like AWS Lambda has changed their deployment mechanism... "gulp lambda:deploy" now gives me errors like:

[11:14:21] 'lambda:upload' errored after 668 ms
[11:14:21] ResourceConflictException: The operation cannot be performed at this time.
An update is in progress for resource: arn:aws:lambda:us-east-1:###:function:ABC
...
[11:14:21] 'lambda:deploy' errored after 16 s

However, the function is successfully updated after 30 seconds or so. I feel like I saw a notice that Lambda deployment changed to be asynchronous or something, but I can't find a specific reference just now.

Can aws-lambda-typescript be updated to use whatever the new sequence of calls is so it doesn't generate the upload error, and also doesn't finish running until the function has been successfully updated?

P.S. Node 14, Apple M1, aws-lambda-typescript 5.1.1. I'll try updating my aws cli to see if that helps. (And... it didn't help.)

ammulder avatar Jan 02 '22 16:01 ammulder

Oh how very annoying, I'll take a look at it

stevejhiggs avatar Jan 03 '22 11:01 stevejhiggs

Any update on this?

ammulder avatar Jan 19 '22 15:01 ammulder

Sometimes life gets in the way :)

stevejhiggs avatar Jan 19 '22 21:01 stevejhiggs

Just checking in again... :)

ammulder avatar Feb 23 '22 16:02 ammulder