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

Dynamo #11

Closed
iwarner opened this issue May 27, 2022 · 12 comments
Closed

Dynamo #11

iwarner opened this issue May 27, 2022 · 12 comments

Comments

@iwarner
Copy link

iwarner commented May 27, 2022

Issue with Table generation

POST /dev/auth/sign-up (λ: sign-up)
One of the tables was not found, verify table exists before retrying. Error: Cannot do operations on a non-existent table

Run the create user curl and get the above

NB// Also add docs about setting up AWS credentials and the defaults needed perhaps

@NetanelBasal
Copy link
Member

Did you run npm run localstack?

@jhonpedro
Copy link

I did it over here and this error continues to happen.

What should happen when we run our docker-compose? It should create the tables?

@NetanelBasal
Copy link
Member

It starts dynamodb, then you need to run npm run serve

@jhonpedro
Copy link

jhonpedro commented May 29, 2022

Strange that it doesn't work

But if the sls offline starts it, creates the Dynamo tables in the Localstack instance too?

@NetanelBasal
Copy link
Member

Yes

@ghost
Copy link

ghost commented Jun 6, 2022

I had the same issue. After running npm run localstack and npm run serve the dev-AppTable was not created. I'm not sure the process in which this would be created in the localstack env but the core service does not include a sls offline command.

The workaround for me was to use the NoSQL Workbench as described in the README.MD. Once you connect to your localstack dynamoDB, you can simply create the table.

I would, however, like to know how to automate this process so local development is not so manual if you need to add another table/queue/etc...

@NetanelBasal
Copy link
Member

Interesting. I'll take a look.

@NetanelBasal
Copy link
Member

npx nx deploy core --stage local

@NetanelBasal
Copy link
Member

I added it to the docs.

@ghost
Copy link

ghost commented Jun 6, 2022

Thanks! Does npx nx deploy core --stage local not deploy things to your cloud env?

I currently do not have a local aws profile. Is that something that needs to be setup?

@NetanelBasal
Copy link
Member

No, this is how you deploy it to localstack. Yes, you need to create it and put dummy values.

@ghost
Copy link

ghost commented Jun 6, 2022

Ah okay, makes sense. Ty for this.

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