Updating Authorization Mode in Amplify-CLI
** Which Category is your question related to? ** Amplify CLI 3.14.0
** What AWS Services are you utilizing? ** Appsync / Amplify CLI / GraphQL
** Provide additional details e.g. code snippets ** I can change the authorization mode for my AppSync api in the browser, i.e. from API Key to Cognito user pools. By copying the new appsync config into the awsconfiguration.json and updating my code the app runs fine. However, performing an "amplify push" resets the local configuration to API Key. How can one change the authorization mode via the amplify cli?
Updating API Auth mode can be done by running amplify api update. Feel free to comment here if you still have additional question
I currently dont have an auth method attached in amplify cli, meaning when I run amplify status only the api is showing up. When I run amplify api update it wants to create a new userpool, which is not what I want because I already have my pool running.
But then the question is where does the backend get the information from to reset the auth method?
This issue has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs.
Looking for a help forum? We recommend joining the Amplify Community Discord server *-help channels for those types of questions.