# Stack 'test-project-dev' does not exist

**URL:** <https://forum.serverless.com/t/stack-test-project-dev-does-not-exist/8777>\
**Category:** Serverless Framework\
**Tags:** aws\
**Created:** [July 13, 2019, 6:59am UTC](https://forum.serverless.com/t/stack-test-project-dev-does-not-exist/8777 "2019-07-13T06:59:38Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![balarajuaws68](https://avatars.discourse-cdn.com/v4/letter/b/53a042/32.png) [@balarajuaws68](https://forum.serverless.com/u/balarajuaws68)\
**Post date:** [July 13, 2019, 6:59am UTC](https://forum.serverless.com/t/stack-test-project-dev-does-not-exist/8777/1 "2019-07-13T06:59:38Z")

</div>

Hello All,

ITS VERY URGENT AND COULD SOME ONE PLEASE HELP ME

When I try deploy serverless giving me below error,

PS C:\projects\ReactJS\07132019\demo-serverless\> serverless deploy -v  
Serverless: Packaging service…  
Serverless: Excluding development dependencies…  
Serverless: Creating Stack…  
Serverless: Checking Stack create progress…  
CloudFormation - CREATE\_IN\_PROGRESS - AWS::CloudFormation::Stack - test-project-dev  
CloudFormation - CREATE\_IN\_PROGRESS - AWS::S3::Bucket - ServerlessDeploymentBucket  
CloudFormation - CREATE\_FAILED - AWS::S3::Bucket - ServerlessDeploymentBucket  
CloudFormation - DELETE\_IN\_PROGRESS - AWS::CloudFormation::Stack - test-project-dev  
CloudFormation - DELETE\_COMPLETE - AWS::S3::Bucket - ServerlessDeploymentBucket  
CloudFormation - DELETE\_COMPLETE - AWS::CloudFormation::Stack - test-project-dev  
Serverless: Stack create finished…

Serverless Error ---------------------------------------

Stack ‘test-project-dev’ does not exist

---

<div class="post-metadata">

**Author:** ![balarajuaws68](https://avatars.discourse-cdn.com/v4/letter/b/53a042/32.png) [@balarajuaws68](https://forum.serverless.com/u/balarajuaws68)\
**Post date:** [July 14, 2019, 12:16pm UTC](https://forum.serverless.com/t/stack-test-project-dev-does-not-exist/8777/2 "2019-07-14T12:16:48Z")

</div>

Hello All,

ITS VERY VERY URGENT AND CAN SOME ONE HELP ME PLEASE?

THANK YOU SO MUCH FOR YOUR KIND HELP IN ADVANCE,

REGARDS,  
BALA

---

<div class="post-metadata">

**Author:** ![garethmcc](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/garethmcc/32/2276_2.png) [@garethmcc](https://forum.serverless.com/u/garethmcc)\
**Post date:** [July 14, 2019, 5:35pm UTC](https://forum.serverless.com/t/stack-test-project-dev-does-not-exist/8777/3 "2019-07-14T17:35:10Z")

</div>

Does the S3 bucket it is trying to make already exist? Remember that buckets need to be globally unique, in other words no other bucket with that name anywhere in the world must exist.

---

<div class="post-metadata">

**Author:** ![balarajuaws68](https://avatars.discourse-cdn.com/v4/letter/b/53a042/32.png) [@balarajuaws68](https://forum.serverless.com/u/balarajuaws68)\
**Post date:** [July 15, 2019, 3:49am UTC](https://forum.serverless.com/t/stack-test-project-dev-does-not-exist/8777/4 "2019-07-15T03:49:55Z")

</div>

Hey [garethmcc],

Thank you so much for your prompt response and greatly appreciated.

I do understand, but the problem over here, in personal AWS account works well and able to invoke lambda from from remotely after performing the command serverless deploy.

the same repository doesn’t work when I try to deploy in my work - organization aws account using serverless deploy -v.

Please see below and ITS REALLY URGENT AND YOUR HELP WILL BE GREATLY APPRECIATED,

PS C:\projects\sls\07142019\serverless-demo\> serverless deploy --aws-profile default -v  
Serverless: Packaging service…  
Serverless: Excluding development dependencies…  
Serverless: Creating Stack…  
Serverless: Checking Stack create progress…  
CloudFormation - CREATE\_IN\_PROGRESS - AWS::CloudFormation::Stack - my-test-project-dev  
CloudFormation - CREATE\_IN\_PROGRESS - AWS::S3::Bucket - ServerlessDeploymentBucket  
CloudFormation - CREATE\_FAILED - AWS::S3::Bucket - ServerlessDeploymentBucket  
CloudFormation - DELETE\_IN\_PROGRESS - AWS::CloudFormation::Stack - my-test-project-dev  
CloudFormation - DELETE\_COMPLETE - AWS::S3::Bucket - ServerlessDeploymentBucket  
CloudFormation - DELETE\_COMPLETE - AWS::CloudFormation::Stack - my-test-project-dev  
Serverless: Stack create finished…

Serverless Error ---------------------------------------

Stack ‘my-test-project-dev’ does not exist

Your Environment Information ---------------------------  
OS: win32  
Node Version: 10.16.0  
Serverless Version: 1.47.0

---

<div class="post-metadata">

**Author:** ![garethmcc](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/garethmcc/32/2276_2.png) [@garethmcc](https://forum.serverless.com/u/garethmcc)\
**Post date:** [July 15, 2019, 6:14am UTC](https://forum.serverless.com/t/stack-test-project-dev-does-not-exist/8777/5 "2019-07-15T06:14:19Z")

</div>

If the S3 bucket name is the same when deploying to your account as when deploying to the work account, that is the problem. S3 bucket names need to be globally unique; i.e. across AWS accounts and across regions. For example, if you tried to create a bucket with the same name as a bucket I have created, you will get an error.

One way to get past this error when naming things that will be used local and in dev and in prod, etc is to add the stage (dev, prod, local) to the bucket name using `${opt:stage)` and then passing the stage as an option with the deploy command: `severless deploy --stage dev`

---

<div class="post-metadata">

**Author:** ![balarajuaws68](https://avatars.discourse-cdn.com/v4/letter/b/53a042/32.png) [@balarajuaws68](https://forum.serverless.com/u/balarajuaws68)\
**Post date:** [July 16, 2019, 11:48am UTC](https://forum.serverless.com/t/stack-test-project-dev-does-not-exist/8777/6 "2019-07-16T11:48:37Z")

</div>

Hey Garethmcc,

Thank you so much for your help.

If I understand correctly, serverless framework generating some unique bucket examples - my-test-project-prod-serverlessdeploymentbucket-ogmc9oi0007q (was generated when I deploy to my personal AWS account - assuming aws is generating random bucket to make it unique - COULD SOME ONE CORRECT ME IF MY UNDERSTANDING IS INCORRECT?) for each deploy.

When I deploy the same code to my official account, I’m getting the below error,

PS C:\projects\sls\07142019\serverless-demo\> serverless deploy --aws-profile default -v  
Serverless: Packaging service…  
Serverless: Excluding development dependencies…  
Serverless: Creating Stack…  
Serverless: Checking Stack create progress…  
CloudFormation - CREATE\_IN\_PROGRESS - AWS::CloudFormation::Stack - my-test-project-dev  
CloudFormation - CREATE\_IN\_PROGRESS - AWS::S3::Bucket - ServerlessDeploymentBucket  
CloudFormation - CREATE\_FAILED - AWS::S3::Bucket - ServerlessDeploymentBucket  
CloudFormation - DELETE\_IN\_PROGRESS - AWS::CloudFormation::Stack - my-test-project-dev  
CloudFormation - DELETE\_COMPLETE - AWS::S3::Bucket - ServerlessDeploymentBucket  
CloudFormation - DELETE\_COMPLETE - AWS::CloudFormation::Stack - my-test-project-dev  
Serverless: Stack create finished…

Serverless Error ---------------------------------------

Stack ‘my-test-project-dev’ does not exist

When I go and check CloudTrail and CloudWatch, I don’t find any logs. I really don’t understand, should give some logs about errors right? At least these logs may help to debug and analyze.

I really don’t understand what’s really causing in this scenario and did anyone come across this scenario and HELP ME IN UNDERSTANDING WHAT"S HAPPENING?

Thank you so much for your favor in advance,

---

<div class="post-metadata">

**Author:** ![uglybachelor](https://avatars.discourse-cdn.com/v4/letter/u/7993a0/32.png) [@uglybachelor](https://forum.serverless.com/u/uglybachelor)\
**Post date:** [February 29, 2020, 5:31pm UTC](https://forum.serverless.com/t/stack-test-project-dev-does-not-exist/8777/7 "2020-02-29T17:31:39Z")

</div>

hi,

Did you ever figure out what caused this?

I’m experiencing the same error too.

```
  Your Environment Information ---------------------------
     Operating System: darwin
     Node Version: 10.16.3
     Framework Version: 1.65.0
     Plugin Version: 3.4.1
     SDK Version: 2.3.0
     Components Version: 2.22.3

```

thx!

---

<div class="post-metadata">

**Author:** ![tiensinh3030](https://avatars.discourse-cdn.com/v4/letter/t/cab0a1/32.png) [@tiensinh3030](https://forum.serverless.com/u/tiensinh3030)\
**Post date:** [April 17, 2020, 6:59am UTC](https://forum.serverless.com/t/stack-test-project-dev-does-not-exist/8777/8 "2020-04-17T06:59:09Z")

</div>

Thanks for your share very much

---

<div class="post-metadata">

**Author:** ![BjMrq](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/bjmrq/32/4430_2.png) [@BjMrq](https://forum.serverless.com/u/BjMrq)\
**Post date:** [July 25, 2020, 7:17pm UTC](https://forum.serverless.com/t/stack-test-project-dev-does-not-exist/8777/9 "2020-07-25T19:17:04Z")

</div>

Hello, for future reference, if you are using codepipeline you might get this error because you did not set the right s3 access policy to the pipeline

---

<div class="post-metadata">

**Author:** ![Aym3nTN](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/aym3ntn/32/5392_2.png) [@Aym3nTN](https://forum.serverless.com/u/Aym3nTN)\
**Post date:** [March 22, 2021, 4:08pm UTC](https://forum.serverless.com/t/stack-test-project-dev-does-not-exist/8777/10 "2021-03-22T16:08:56Z")

</div>

I can relate, thank you!

---

<div class="post-metadata">

**Author:** ![marcos](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/marcos/32/7165_2.png) [@marcos](https://forum.serverless.com/u/marcos)\
**Post date:** [December 28, 2022, 1:36pm UTC](https://forum.serverless.com/t/stack-test-project-dev-does-not-exist/8777/11 "2022-12-28T13:36:25Z")

</div>

Change service name worked for me.
