tallux tallux
tallux tallux

Reputation: 31

Parameters: [unauthRoleName] must have values

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?

Upvotes: 3

Views: 2680

Answers (3)

Sphinx
Sphinx

Reputation: 424

I was having a similar issue.

Here's what helped:

  1. Remove the identity pools
  2. Unlink the authentication from Amplify
  3. Create a new identity pool and link the user pool with the identity pool
  4. Link back the authentication to amplify
  5. This might break the Amplify studio interface. To fix that, simply disable and then enable the amplify studio

Upvotes: 1

David Perez
David Perez

Reputation: 488

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!

Upvotes: 1

Nis
Nis

Reputation: 499

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

Upvotes: 1

Related Questions