This is a new problem for me using the latest ASK CLI 1.4.1.
If I deploy once, it works fine. In .ask/config I see that deploy_settings.default.resources.lambda.revisionId has been updated.
Next time I try to deploy, I get this error message:
Error: Command failed: ask deploy
[Error]: Lambda update failed. Lambda ARN: arn:aws:lambda:us-east-1:664201(...)
The Revision Id provided does not match the latest Revision Id. Call the GetFunction/GetAlias API to retrieve the latest Revision Id
If I remove the revisionId attribute from .ask/config entirely, it works again.
This never happened before, I only noticed it tonight. I updated to 1.4.1 a few days ago.