amplify-cli icon indicating copy to clipboard operation
amplify-cli copied to clipboard

Sharing same dynamodb between enviornement

Open vjindalaurea opened this issue 7 years ago • 2 comments

Hi can we use same dynamoDB between multiple env ? in our case we need to have multiple appsync , but only one dynamoDB .

vjindalaurea avatar Apr 06 '19 03:04 vjindalaurea

You can use custom stacks to reference a single DynamoDB table but it is not currently supported via the GraphQL Transform alone. To learn more about referencing custom resources via custom stacks see this example using lambda here https://aws-amplify.github.io/docs/cli/graphql#add-a-custom-resolver-that-targets-an-aws-lambda-function. I'll also suggest taking a look at #1060 and #1062 and offering feedback there. With #1060 you will be able to write your own transformers for custom use cases that are not supported out of the box. #1062 is not final and will go through another round of design review that will address using existing tables as well as defining completely custom index structures and key schemas that can be used with models.

mikeparisstuff avatar Apr 12 '19 20:04 mikeparisstuff

This issue has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs.

Looking for a help forum? We recommend joining the Amplify Community Discord server *-help channels for those types of questions.

github-actions[bot] avatar May 27 '21 11:05 github-actions[bot]