awsmobile-cli
awsmobile-cli copied to clipboard
`awsmobile init <existing-app-id>` removes AppSync feature
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!
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.
+1 for this feature. Been battling with this for past day.
Maybe this is useful: https://github.com/aws/awsmobile-cli/blob/7869de228fe3dad4e8bcb0878ee05e44dc1a2112/lib/backend-operations/appsync-operations/appsync-manager.js#L259
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