I am trying to deploy my data model for a react native App on AWS amplify. After creating my model and importing my custom Auth from the cognito user pool i created Ealier. but i keep getting this error "Parameters: [unauthRoleName] must have values." on deployment. Please How do I solve this?
I had exactly the same issue. I Ctrl+F the "unauthRoleName" in my amplify project and found out there were some that started with lowercase and some with uppercase and then changing those with lowercase to uppercase fixed the issue!
I was having a similar issue.
Here's what helped:
Remove the identity pools
Unlink the authentication from Amplify
Create a new identity pool and link the user pool with the identity pool
Link back the authentication to amplify
This might break the Amplify studio interface. To fix that, simply disable and then enable the amplify studio
Are you doing it from Amplify Studio?
I faced a similar problem for my React.js project while doing it from Amplify Studio. But using Amplify CLI from the root folder of the project, I could deploy it.
Pro Tip:
In case you have copied the project to a new location/machine,
run amplify configure and amplify init again to ensure there is no
team-provider-info.json does not exist error
Related
I built a flutter web application and have previously whole backend setup on AWS. So I want to use my existing userpools from cognito in my app. But just got know that AWS amplify for flutter in only supported in android and ios,not for web. Can you suggest me any solution for this?
Try using this package: https://pub.dev/packages/amazon_cognito_identity_dart_2
I've been using it for a while, and it works fine on Android and Web; I think I even got it working on iOS.
What Amplify team did with official Flutter package was use a wrapper around existing Android and iOS implementation (by using platform channel). I guess this is a reason it will take them a while to sort out web.
The above package is based on amplify-js, and re-written in dart, so it will compile on any platform.
In my project workspace I created two separate projects: one with amplify to create back-end objects, and one flutter project. So, like in your case, my flutter project connects to an existing AWS backed.
They have mentioned two methods in documentation,
https://github.com/aws-amplify/amplify-js/wiki/FAQ#how-can-i-get-jwt-token-when-using-amplify-to-get-federated-users-login
So according to this userpool can be used with social login when we use hosted ui, using the same function Auth.federatedSignIn()
When i try this example (the example above #note for expo users),
https://aws-amplify.github.io/docs/js/authentication#a-note-for-expo-users
it gives error - cognito.urlOpener is undefined.
But i found here the solution - update aws amplify libraries
https://github.com/aws-amplify/amplify-js/issues/3000#issuecomment-479880086
current library versions - aws-amplify - 1.1.24-unstable.0
, aws amplify react native - 2.1.9
But when i update these app doesnt work - it gives error undefined variable Symbol
Someone please let me know whether we can use cognito userpool for react native apps with aws amplify social login.
Thanks
You can try amazon-cognito-identity-js npm package, Which is easy to understand and implement.
Below is the link,
https://www.npmjs.com/package/amazon-cognito-identity-js
when I want to put my project on GAE i get this error in SDK shell:
ERROR: (gcloud.app.deploy) Permissions error fetching application [apps/responsive-my-super-app-201910]. Please make sure you are using the correct project ID and that you have permission to view applications on the project.
You haven't authenticated the cloud SDK. Try running gcloud auth list. Is your email included in the credentialed accounts? If not, run glcoud auth login.
If you are listed in the credentialed accounts, then perhaps you haven't properly associated your project with your login, or you have a typo in your project name.
AWS Amplify can now be used with react native and expo SDK25 (Create React Native App) without ejecting first. This is great for those looking to stay within the AWS ecosystem and use Cognito User Pools.
But I couldn't find a way to use AWS Amplify to let the user make updates to their data (e.g. fix a name spelling, change phone number, etc.). Has anyone else been able to do this and if so how?
mutable user attributes are planned to be pushed in our next release this coming Monday 1/29/2018
I've got a feeling this is a noob question... Is there a way to simulate the use of Cognito User pools locally (so offline)?
I've got a feeling that resorting to aws cognito normal user pools while developing is bit unnecessary. I now that with serverless there's a plugin to use it offline, but didn't found one for cognito.
The AWS SDK doesn't include a local plugin for using Cognito User Pools at this time, however we have heard this request from other customers and will consider it in future releases.
Recently localstack released a pro version that actually allows to run the cognito locally. It also has several other services that normally are used with cognito so this is the perfect solution for me.
https://github.com/localstack/localstack
Also there is an open source contributor created node package/docker image emulating some parts of Cognito, but not all.
https://github.com/jagregory/cognito-local
Haven't used it personally, but looking forward to it.