Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No export named dev-ExtNotesTableArn found #2

Open
alex-dixon opened this issue Dec 19, 2019 · 4 comments
Open

No export named dev-ExtNotesTableArn found #2

alex-dixon opened this issue Dec 19, 2019 · 4 comments

Comments

@alex-dixon
Copy link

Hi. Got this when running sls deploy from services/notes-api.

sls deploy
Serverless: Bundling with Webpack...
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: Uploading service create.zip file to S3 (761.74 KB)...
Serverless: Uploading service get.zip file to S3 (761.87 KB)...
Serverless: Uploading service list.zip file to S3 (761.88 KB)...
Serverless: Uploading service delete.zip file to S3 (761.7 KB)...
Serverless: Uploading service update.zip file to S3 (762.35 KB)...
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-notes-api-dev%2Fa664cef0-21f5-11ea-94cc-0ef4281dfc4d

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

  An error occurred: notes-app-ext-notes-api-dev - No export named dev-ExtNotesTableArn 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
@jayair
Copy link
Member

jayair commented Jan 19, 2020

Yeah it's talked about in the guide. We need to deploy the resources before deploying this repo.

@GioAgu17
Copy link

I already deployed the resources, but still not finding the External resources.
Stack dev-remark-ext-infra-dynamodb Status: no changes Outputs: TableName: dev-remark-ext-infra-dynamodb-TableCD117FA1-1K5YBO1DN4MZU TableArn: arn:aws:dynamodb:us-east-2:554426681508:table/dev-remark-ext-infra-dynamodb-TableCD117FA1-1K5YBO1DN4MZU Exports: dev-remark-ext-infra-ExtTableName: dev-remark-ext-infra-dynamodb-TableCD117FA1-1K5YBO1DN4MZU dev-remark-ext-infra-ExtTableArn: arn:aws:dynamodb:us-east-2:554426681508:table/dev-remark-ext-infra-dynamodb-TableCD117FA1-1K5YBO1DN4MZU

Then when I run serverless deploy -v in my services repo:
An error occurred: serverless-lerna-yarn-service1-dev - No export named dev-remark-ext-infra-ExtTableName found.

@GioAgu17
Copy link

GioAgu17 commented Nov 16, 2020

Ok, was able to determine why.

Cross-stack references only apply within the same region.

I suggest to put wherever in the code a wrong value in the region, so when running people will be forced to put their working region. There are too many references of region along the repos and the services.

Even better, an environment variable! :)

@jayair
Copy link
Member

jayair commented Nov 22, 2020

Yup these need to be in the same region.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants