# .serverless folder after deploy

**URL:** <https://forum.serverless.com/t/serverless-folder-after-deploy/465>\
**Category:** Serverless Framework\
**Tags:** aws\
**Created:** [October 6, 2016, 10:39am UTC](https://forum.serverless.com/t/serverless-folder-after-deploy/465 "2016-10-06T10:39:02Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![smkamranqadri](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/smkamranqadri/32/58_2.png) [@smkamranqadri](https://forum.serverless.com/u/smkamranqadri)\
**Post date:** [October 6, 2016, 10:39am UTC](https://forum.serverless.com/t/serverless-folder-after-deploy/465/1 "2016-10-06T10:39:02Z")

</div>

do we have to keep the .serverless folder after deploy?

---

<div class="post-metadata">

**Author:** ![ianserlin](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/ianserlin/32/34_2.png) [@ianserlin](https://forum.serverless.com/u/ianserlin)\
**Post date:** [October 8, 2016, 6:10am UTC](https://forum.serverless.com/t/serverless-folder-after-deploy/465/2 "2016-10-08T06:10:05Z")

</div>

No. It’s a bit annoying it doesn’t go away… but it’s nice to be able to review the generated CloudFormation file and zipped bundle immediately if you need to debug your serverless.yml configuration.

This folder will get regenerated every time you deploy and is just a build artifact, you and safely delete/ignore it.

---

<div class="post-metadata">

**Author:** ![flomotlik](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/flomotlik/32/3_2.png) [@flomotlik](https://forum.serverless.com/u/flomotlik)\
**Post date:** [October 12, 2016, 2:59pm UTC](https://forum.serverless.com/t/serverless-folder-after-deploy/465/3 "2016-10-12T14:59:59Z")

</div>

In the past we had it the other way around where it was deleted after the deployment, now we delete and recreate and leave it so its easier to debug things. We should probably add this to .gitignore of each template: [https://github.com/serverless/serverless/issues/2343](https://github.com/serverless/serverless/issues/2343)

---

<div class="post-metadata">

**Author:** ![waglik](https://avatars.discourse-cdn.com/v4/letter/w/919ad9/32.png) [@waglik](https://forum.serverless.com/u/waglik)\
**Post date:** [March 11, 2017, 8:31am UTC](https://forum.serverless.com/t/serverless-folder-after-deploy/465/4 "2017-03-11T08:31:40Z")

</div>

So if .serverless directory is not needed where are information stored? If I checkout code on different machine how does serverless knows which function to update?

---

<div class="post-metadata">

**Author:** ![bni](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/bni/32/1329_2.png) [@bni](https://forum.serverless.com/u/bni)\
**Post date:** [March 11, 2017, 9:44am UTC](https://forum.serverless.com/t/serverless-folder-after-deploy/465/5 "2017-03-11T09:44:40Z")

</div>

The deploy bucket automatically created on s3, and the CloudFormation stack

---

<div class="post-metadata">

**Author:** ![waglik](https://avatars.discourse-cdn.com/v4/letter/w/919ad9/32.png) [@waglik](https://forum.serverless.com/u/waglik)\
**Post date:** [March 11, 2017, 9:59am UTC](https://forum.serverless.com/t/serverless-folder-after-deploy/465/6 "2017-03-11T09:59:18Z")

</div>

Nice idea. Thanks for explanation.
