'AWS CloudFormation Stack Fails to Update Lambda Function

Whenever I make an update to my existing Cloud Formation Stack Configuration (within YAML template) and make a deploy then I get following error: MyLambdaFunctionNameAliaslive failed to update

One solution is I delete my existing cloud formation stack and deploy again it works.

I have AutoPublishAlias live property enabled within my lambda function, and I assume this issue is somewhat related to unable to update pointer to new lambda function.

Please let me know how this can be fixed, so that I do not need to delete CloudFormation stack every-time I update my lambda function config.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source