# Cloudformation update fails due to \`LambdaVersion\` already exists in stack

**URL:** <https://forum.serverless.com/t/cloudformation-update-fails-due-to-lambdaversion-already-exists-in-stack/17333>\
**Category:** Serverless Framework\
**Tags:** aws, lambda, cloudformation\
**Created:** [June 17, 2022, 4:08pm UTC](https://forum.serverless.com/t/cloudformation-update-fails-due-to-lambdaversion-already-exists-in-stack/17333 "2022-06-17T16:08:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bersaelor](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/bersaelor/32/6919_2.png) [@Bersaelor](https://forum.serverless.com/u/Bersaelor)\
**Post date:** [June 17, 2022, 4:08pm UTC](https://forum.serverless.com/t/cloudformation-update-fails-due-to-lambdaversion-already-exists-in-stack/17333/1 "2022-06-17T16:08:55Z")

</div>

Hey there,

after not having touched my project for a while (and possibly several new versions of sls being released in the meantime), I was trying to deploy a minor change in one of my functions.

Now, after running `sls deploy -s prod` the Cloudformation update always fails with:

```auto
CREATE_FAILED: CategoriesLambdaVersion... (AWS::Lambda::Version)
arn:aws:lambda:eu-central-1:..:function:..:65 already exists in stack arn:aws:cloudformation:..

```

This error is about a different function and of course this other function exists, it has been part of this cloud formation stack for a while and has not changed at all, I’m unsure why sls even tries to update the unrelated function.  
Even if I comment out that offending function in my `serverless.yml`, I will get the same error for the next function in the list, again not the one I am actually updating.

Please help!

PS:

```auto
❯ sls -v
Framework Core: 3.19.0
Plugin: 6.2.2
SDK: 4.3.2

```

---

<div class="post-metadata">

**Author:** ![Bersaelor](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/bersaelor/32/6919_2.png) [@Bersaelor](https://forum.serverless.com/u/Bersaelor)\
**Post date:** [June 17, 2022, 4:17pm UTC](https://forum.serverless.com/t/cloudformation-update-fails-due-to-lambdaversion-already-exists-in-stack/17333/2 "2022-06-17T16:17:39Z")

</div>

Mhmm, I was able to force-update everything by changing each linked function in my `serverless.yml` by at least a line-break in the file.  
Oh well…
