No export named dev-ExtAttachmentsBucketArn
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
Are you following the guide for these?
I think at the time I was following the README. It says to cd to a services folder and run sls deploy.
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
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