amazon-archives / awsmobile-cli

CLI experience for Frontend developers in the JavaScript ecosystem.
Apache License 2.0
142 stars 35 forks source link

awsmobile push tried to create DynamoDB tables that already existed #116

Open ceich opened 6 years ago

ceich commented 6 years ago

I edited appsync-info.json to specify the apiId of an existing API, and ran awsmobile pull which correctly pulled down the full API.

When I ran awsmobile push it tried to re-create the DynamoDB tables. The failure did not seem fatal, and the overall push ran to completion.

I am not sure what would have happened if I had edited the table definitions before pushing. I am afraid that the updates would not have propagated to the cloud.

ceich commented 6 years ago

It also created a new User Pool, albeit with all the same settings as the original User Pool. Why did this happen?

UnleashedMind commented 6 years ago

Hi @ceich, Sorry but we currently do not support this operation. Although it would be a nice addition to the CLI. The appsync-info.json file inside the .awsmobile folder is only meant to be read and written by the cli, developers should not manually edit the contents of the files in it. And existing AppSync api can not be attached to frontend project like what you are doing here. We are working to enhancing the CLI AppSync feature.

ceich commented 6 years ago

@UnleashedMind Any update? I don't see any commits to this repo after May 9; is this team still working on the tool?