serverless-stack-demo-ext-resources icon indicating copy to clipboard operation
serverless-stack-demo-ext-resources copied to clipboard

No export named dev-ExtAttachmentsBucketArn

Open alex-dixon opened this issue 6 years ago • 4 comments

Hi. Not sure if I'm doing something wrong but got this after cd services/auth && sls deploy.

sls deploy
Serverless: Packaging service...
Serverless: Creating Stack...
Serverless: Checking Stack create progress...
.....
Serverless: Stack create finished...
Serverless: Uploading CloudFormation file to S3...
Serverless: Uploading artifacts...
Serverless: Validating template...
Serverless: Updating Stack...
Serverless: Checking Stack update progress...
...
Serverless: Operation failed!
Serverless: View the full error output: https://us-east-1.console.aws.amazon.com/cloudformation/home?region=us-east-1#/stack/detail?stackId=arn%3Aaws%3Acloudformation%3Aus-east-1%3A892036928957%3Astack%2Fnotes-app-ext-auth-dev%2F7eca0600-21f3-11ea-ab9d-0ed5acf75591

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

  An error occurred: notes-app-ext-auth-dev - No export named dev-ExtAttachmentsBucketArn found.

  Get Support --------------------------------------------
     Docs:          docs.serverless.com
     Bugs:          github.com/serverless/serverless/issues
     Issues:        forum.serverless.com

  Your Environment Information ---------------------------
     Operating System:          darwin
     Node Version:              10.16.0
     Serverless Version:        1.49.0
     Enterprise Plugin Version: 1.3.6
     Platform SDK Version:      2.1.0

alex-dixon avatar Dec 19 '19 00:12 alex-dixon

Are you following the guide for these?

jayair avatar Jan 19 '20 03:01 jayair

I think at the time I was following the README. It says to cd to a services folder and run sls deploy.

alex-dixon avatar Jan 19 '20 03:01 alex-dixon

Yeah they are a part of the guide. We didn't really detail all the steps in the README.

https://serverless-stack.com/chapters/best-practices-for-building-serverless-apps.html

jayair avatar Jan 26 '20 17:01 jayair

Ah hah! There are dependencies within the infrastructure services, not just between API and infra.

In our resources repo we need to:

Deploy the database and uploads service. These can be deployed concurrently.
Then we can deploy the auth service.

https://serverless-stack.com/chapters/deploy-a-serverless-app-with-dependencies.html

alex-dixon avatar Feb 12 '20 18:02 alex-dixon