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

`awsmobile init <existing-app-id>` removes AppSync feature

Open phoenecke opened this issue 6 years ago • 4 comments

I have a project with the two default features, plus AppSync which was added via the awsmobile features menu. Everything was working until I re-cloned a fresh copy of my repo and ran awsmobile init <apphub-id> to re-hook it up to the existing backend.

After that, the folder appsync is gone from awsmobilejs/backend.

It seems like, I am missing the appsync-info.json file, which was in the default .gitignore file.

I would expect awsmobile init <apphub-id> to hook AppSync back up. If not, is there a documented process for manually recreating the proper config to hook it up?

Thanks!

phoenecke avatar Jun 14 '18 20:06 phoenecke

Unfortunately, what you asked for can not be realized yet. The appsync feature is a simple add-on to the cli, and is not a complete feature because the mobile hub does not support the appsync. We will announce it once there's an update.

UnleashedMind avatar Jun 14 '18 22:06 UnleashedMind

+1 for this feature. Been battling with this for past day.

rygo6 avatar Aug 08 '18 23:08 rygo6

Maybe this is useful: https://github.com/aws/awsmobile-cli/blob/7869de228fe3dad4e8bcb0878ee05e44dc1a2112/lib/backend-operations/appsync-operations/appsync-manager.js#L259

0xR avatar Sep 11 '18 16:09 0xR

This seems to work https://github.com/aws/awsmobile-cli/issues/182#issuecomment-415885097

Ensure you don't have a typo in the json file, otherwise it gets silently ignored

0xR avatar Sep 11 '18 16:09 0xR