Reputation: 55
I'm trying to create an iOS app and I've been having some problems. I'm using services from AWS and been using Amplify CLI to create the back end resources. After running through the Authorization documentation (ie amplify add auth) it appears that everything works in the console, and my awsconfiguration.json file is updated.
I went to look at the resources on the back end, however, and I found that the user pool and identity pool were not created.
At this point I've attempted to create an app a few times and I'm wondering if I maybe have an old configuration file cached that's still being referenced? Any recommendations would be greatly appreciated. Also i would post some code on this but there are no errors thrown.
Upvotes: 1
Views: 1161
Reputation: 7307
after you run amplify add auth
, you need to run amplify push
to create your resources in AWS.
Upvotes: 0
Reputation: 639
I had a similar issue. I followed a tutorial and everything worked fine; users could signup and login. However, when I tried to access the services in the AWS Console I could not find anything that was initialized via Amplify. Sooooo, after scouring the internet I realized that this command:
$ amplify auth console
directs you to the User Pool that was created for your app through Amplify. Once I did ran that command I was able to access all the services that were created through the Amplify CLI for my app.
Upvotes: 4
Reputation: 11
I had the same issue. I switched to another region and pushed the auth module by itself (previously I had tried pushing both the auth and hosting modules at once).
To reiterate, I added the hosting resource and pushed it.
Added the auth resource and pushed it.
Just followed the exact instructions given in the AWS Amplify React & React Native Getting Started Tutorial.
Hope it helps :)
Upvotes: 1