4

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.

Vidip
  • 162
  • 1
  • 2
  • 13
  • what if you disable the auto publish alias property? – Sándor Bakos Apr 13 '22 at 16:23
  • Can you go to CloudFormation within the console to get details on the precise reason for the failure? – Floh Apr 13 '22 at 16:25
  • 1
    @Floh It only says ```MyLambdaFunctionNameAliasLive``` failed to update and in status it shows ```UPDATE_FAILED``` – Vidip Apr 13 '22 at 17:12
  • @SándorBakos I did not checked by removing that, but in any case I would require that field to point my lambda to latest alias. – Vidip Apr 13 '22 at 17:15
  • 1
    @Vidip if you will go to the CloudFormation stack events tab, you should be able to see more detailed description of failure reason – Milan Gatyás Apr 14 '22 at 07:34

0 Answers0