amazon-archives / awsmobile-cli

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

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

Open phoenecke opened 6 years ago

phoenecke commented 6 years ago

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!

UnleashedMind commented 6 years ago

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.

rygo6 commented 5 years ago

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

0xR commented 5 years ago

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

0xR commented 5 years ago

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