Adding existing UserPool and Appsync API to amplify project
** Which Category is your question related to? ** Usage / Feature Request
** What AWS Services are you utilizing? ** AWS Appsync, Cognito UserPools
** Provide additional details e.g. code snippets **
I would like to add existing UserPools and APIs to the local amplify project.
For amplify codegen this is possible by the command amplify add codegen --apiId xyz
Are there similar commands for amplify auth and amplify api?
If not, I would wish for something like that.
The Amplify CLI does not currently have this functionality, but it is certainly a good suggestion with many use cases, so I'm tagging this as a feature request.
+1 for this feature. It would be extremely useful.
For when will the feature be?
+1
+1
+1
+1 I'm migrating from Mobilehub to Amplify and it doesn't look like amplify allows me to hook up to my existing userpool. If someone can point me in the right direction, it would be much appreciated.
+1 to add existing API Gateway, AppSync, MongoDB, AuroraDB, Coginto UserPool, Coginto Identity pool and Coginto AppClient.
+1
+1 I'm migrating from Mobilehub to Amplify and it doesn't look like amplify allows me to hook up to my existing userpool. If someone can point me in the right direction, it would be much appreciated.
You can manually add user pools, you just need to figure your app with proper resource data. EI, replace IDs with the one for your existing resources.
+1
+1
+1
+1
BTW, There is a way to add existing Cognito User Pools to your vue app. Please visit https://aws-amplify.github.io/docs/js/start?platform=vue and scroll to bottom till you reach Existing AWS Resources.
TLDR;
In your App.js instead of doing Amplify.configure(awsmobile), do:
Amplify.configure({
Auth: {
// REQUIRED - Amazon Cognito Identity Pool ID
identityPoolId: 'XX-XXXX-X:XXXXXXXX-XXXX-1234-abcd-1234567890ab',
// REQUIRED - Amazon Cognito Region
region: 'XX-XXXX-X',
// OPTIONAL - Amazon Cognito User Pool ID
userPoolId: 'XX-XXXX-X_abcd1234',
// OPTIONAL - Amazon Cognito Web Client ID
userPoolWebClientId: 'XX-XXXX-X_abcd1234',
}
});
+1
Any updates on this issue?
+1 Any update on this?
+1
I have to say from all AWS service that I am using (AppSync, DynamoDb, Cognito, Android-sdk) the amplify cli is by far the most obscure.
Maybe it would be a better workflow to do the schema transformation directly in the AWS console and only download the ready to use configuration, similar to the amplify add codegen command.
In my point of view, this would be much more consistent.
+1 Our whole team tried to figure out how to take our existing AppSync (which works great with React JS on the web) and build an Amplify iOS/Android app that consumes it... the solution definitely seems occluded. It is as though the entire Amplify product is focused solely on greenfield apps and not really thought through for existing use cases...
Sorry thats more of a criticism than anything, as I don't really have much to offer in the way of a solution.