aws-amplify / amplify-category-api

The AWS Amplify CLI is a toolchain for simplifying serverless web and mobile development. This plugin provides functionality for the API category, allowing for the creation and management of GraphQL and REST based backends for your amplify project.
https://docs.amplify.aws/
Apache License 2.0
89 stars 77 forks source link

Can't access DynamoDB tables created by GraphQL API on new REST API #294

Open davidhgray opened 4 years ago

davidhgray commented 4 years ago

Describe the bug this is a follow-on to aws-amplify/amplify-cli#3693. when i try to add a new REST API (using amplify add api > REST) that accesses a DynamoDB that created using the @model directive in creating an AppSync GraphQL, the DB is not visible in the "Select the category" step in setting up the new REST API. I'm using the "Hello world" function template.

Amplify CLI Version 4.23.0

To Reproduce 1-amplify add api, choose GraphQL, create some @models. 2-amplify add api, choose REST, and use Hello world as function template. the @model-created DynamoDB will not be listed as a category.

Expected behavior The user should see a list of DynamoDB tables, including those created using @model directive. Screenshot from 2020-07-13 01-15-51

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Additional context I know that the table that i'm trying to access was successfully created, because i can see it in AWS console, and can read/write to it.

davidbiller commented 4 years ago

Bildschirmfoto 2020-07-13 um 16 12 39

UnleashedMind commented 4 years ago

Only DynamoDB tables created using the amplify storage category is checked in the current implementation. I will mark this as an enhancement and discuss with the team.

flyandi commented 4 years ago

Any update on this enhancement?