Migration from v6* to v7 latest fails with [authRoleName, unauthRoleName] must have values on AdminQueries API
Before opening, please confirm:
- [X] I have installed the latest version of the Amplify CLI (see above), and confirmed that the issue still persists.
- [X] I have searched for duplicate or closed issues.
- [X] I have read the guide for submitting bug reports.
- [X] I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
How did you install the Amplify CLI?
npm
If applicable, what version of Node.js are you using?
v14.16.0
Amplify CLI Version
7.6.4
What operating system are you using?
Mac
Amplify Categories
auth, storage, function, api
Amplify Commands
push
Describe the bug
As per the documentation to migrate GQL from v1 to v2, I ran amplify migrate api which migrated my gql schema. When trying to run amplify push, it asked to migrate one of 2 rest API's but not the AdminQueries api that was added through amplify auth. When trying to run amplify push, the following error happens which causes push to fail and rollback:
UPDATE_FAILED apiAdminQueries AWS::CloudFormation::Stack Mon Dec 20 2021 15:38:14 GMT+0800 (Australian Western Standard Time) Parameters: [authRoleName, unauthRoleName] must have values
Expected behavior
I expect amplify migrate function to migrate all required categories correctly and not causing failing errors when pushing updates
Reproduction steps
- have an existing amplify project created before latest version with auth (including admin queries api), GQL schema, Rest API, Storage, Functions
- follow GQL migration guide (no custom resolvers etc)
- try to push changes
GraphQL schema(s)
# Put schemas below this line
Log output
# Put your logs below this line
Additional information
No response
Can you please provide more details on how to reproduce? I attempted creating a new amplify app using v4 of the cli with all resources you mentioned, then upgraded the cli, migrated the graphql, and I was able to push successfully.
Closing due to a lack of followup, but we can revisit this issue if needed.
@frankclaassen I encounter the same problem after migrate api from v1 to v2. Have you found any solution for the problem? The error message I got is Parameters: [unauthRoleName] must have values when I did amplify push
@johannchen2021 if I remember correctly I had to update auth after the migration had run to fix it
@frankclaassen Thanks, when I ran amplify update auth, i got this message Updating imported Auth resource is not supported.
but i could run amplify push without problem before the migration to v2