AWS::Lambda::Version failing on deploy on SLS versions 2.2.0 and higher

Updating to versions higher than 2.1.1 on existing application causing deploy fail in CloudFormation step on AWS::Lambda::Version with:

ServerlessError: An error occurred ${functionArn:version} already exists in stack ${stackArn}

Tried with v2.2.0, 2.3.0 and 2.4.0 with same results. Rolling back to v2.1.1 fixes the issue.

1 Like