question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't access DynamoDB tables created by GraphQL API on a new lambda function

See original GitHub issue

Describe the bug Whenever creating a new lambda function using amplify add function or adding a REST API using amplify add api and choosing REST, the CLI asks for a function template to use, and when I choose CRUD function for Amazon DynamoDB table (Integration with Amazon API Gateway and Amazon DynamoDB) and I try to use existing DynamoDB tables, it says there aren’t any tables. I guess you could use #2463 in order to make it work for creating lambda functions for accessing tables, and not just triggers for tables.

To Reproduce amplify add api, choose GraphQL, create some @models, then amplify add api, choose REST, and use CRUD function for Amazon DynamoDB table (Integration with Amazon API Gateway and Amazon DynamoDB) as template, select DynamoDB table configured in the current Amplify project and you get an error.

Expected behavior The user should be able to see a list of all tables, also tables created using the @model directive on the GraphQL schema

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:4
  • Comments:13 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
idanlocommented, Jul 13, 2020

@davidhgray maybe you should create a new issue, this one is already buried in the list and no one will see it if I re open

1reaction
iShavgulacommented, Mar 20, 2020
Capture d’écran 2020-03-20 à 13 02 06
Read more comments on GitHub >

github_iconTop Results From Across the Web

How to access dynamodb generated by graphql model in ...
I am very new to aws and I am having a hard time understanding the process between lambda function and the dynamoDB. I...
Read more >
Import from Amazon DynamoDB (optional) - AWS AppSync
Import a DynamoDB table · Sign in to the AWS Management Console and open the AppSync console . In the APIs dashboard, choose...
Read more >
Connect an AWS Lambda Data Source to an AppSync ...
We'll create a lambda function entirely within our CDK app. We'll create a data source with our AppSync GraphQL API and add our...
Read more >
Adding Users to DynamoDB using a Cognito Post ... - YouTube
In this video I'll walk you through how to create a back end that implements an Amazon Cognito Post-confirmation Lambda Trigger that ...
Read more >
Import from Amazon DynamoDB (optional) - 亚马逊云科技
Import a DynamoDB table · Sign in to the Amazon Web Services Management Console and open the AppSync console . In the APIs...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found