Open sang2412 opened 1 year ago
Hey @sang2412 :wave: thanks for raising this! I was able to reproduce this issue and noticed the following awsAPIPlugin
block:
"awsAPIPlugin": {
"814": {
"endpointType": "GraphQL",
"endpoint": "https://pe7uiod2xnhajlqvwpn7ernexa.appsync-api.us-east-1.amazonaws.com/graphql",
"region": "us-east-1",
"authorizationType": "AMAZON_COGNITO_USER_POOLS",
"apiKey": "da2-6qocwp27ungjbefd76n3vbboha"
}
}
Marking as a bug 🙂
Hi @josefaidt In the mean time, is it recommended to manually configure the awsAPIPlugin block? Hoping there won't be any security concerns with manual configuration.
Hey @sang2412 apologies for the delay here, but you should be able to add additional configs manually to the Amplify client in your app code as this file is prone to be overwritten
Before opening, please confirm:
How did you install the Amplify CLI?
npm
If applicable, what version of Node.js are you using?
No response
Amplify CLI Version
10.0.0
What operating system are you using?
Windows
Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
No manual changes made
Amplify Categories
auth, api
Amplify Commands
Not applicable
Describe the bug
When using Amplify CLI to configure a graphql API with multiple authorization modes, amplifyconfiguration.json does not get updated completely. The required configuration under awsAPIPlugin is not done for the additional authorization mode.
The documentation clearly mentions -
Expected behavior
In amplifyconfiguration.json, the required configuration under awsAPIPlugin should automatically be done for the additional authorization mode, as mentioned in the documentation.
Reproduction steps
GraphQL schema(s)
Log output
Additional information
No response