question

newuser-6a024bc6-dbe6-4f43-9007-72707c31a1e7 avatar image

I just started using ask cli but got stuck on this command

ask deploy -t lambda

I am getting this error

[Error]: Lambda update failed. Lambda ARN: arn:aws:lambda:us-east-1:772623xxxxxx:function:Today The Revision Id provided does not match the latest Revision Id. Call the GetFunction/GetAlias API to retrieve the latest Revision Id.

lambdaask cliASK Toolkit for Visual Studio Code
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

newuser-4b947227-ee44-485b-b5a2-72ea88bbd8e3 avatar image
newuser-4b947227-ee44-485b-b5a2-72ea88bbd8e3 answered

It probably means that you made some changes on your AWS Lambda function then went to you local code and made some more changes. So the revisions are not in sync between Lambda function and what you have locally.

If you know your local changes are more recent and final, you can try doing below command which will force deploy and overwrite changes you made on Lambda function. Otherwise you should check what the change is by trying out GetFunction/GetAlias API.

ask deploy --force

Also check out another similar forum post!

10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.