'🛑 Could not load configuration' Error when attempting to change a Model Primary Key or Index Keys #3139
Labels
api-graphql
pending-community-response
Issue is pending a response from the author or community.
pending-triage
question
Further information is requested
transferred
How did you install the Amplify CLI?
NPM
If applicable, what version of Node.js are you using?
v21.1.0
Amplify CLI Version
12.14.2
What operating system are you using?
Mac
Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
No manual changes made
Describe the bug
The amplify CLI raises an non-descriptive error when attempting to update an existing Model with a new primary key or adding a new index key.
I updated the 'Todo' model in the below schema with a '@PrimaryKey ' on 'userID'
I ran 'amplify push --allow-destructive-graphql-schema-updates -y'
The error reads '🛑 Could not load configuration'.
# Starting Schema
Expected behavior
I expected the datasource to be deleted
Reproduction steps
I expected the DynamoDB table datasource to be reconstructed with userID! as a primary key.
Project Identifier
No response
Log output
Additional information
Workaround:
Before submitting, please confirm:
The text was updated successfully, but these errors were encountered: