So the main question I have is essentially what is the recommended flow, command flow to update GSI configurations for a dynamodb storage option?
The only way I can even get prompts for GSI configurations in the cli is to do amplify storage update. Then you can get it to ask if you want to keep current GSI configurations. If I say no and set them all again it makes the change needed but I am unable to push because I get the following error:
"Resource handler returned message: Cannot update GSI's properties other than Provisioned Throughput and Contributor Insights Specification. You can create a new GSI with a different name."
I can easily do this change via the aws console in the browser but this has caused me issues, which leads me to my second question.
When I couldn't get it to work via the cli I deleted the entire amplify folder from my project. Aside from me wanting to try to pull a fresh copy to try and sync the changes I have made via the aws console I had entered a weird state where I had a .temp folder and a no backend config file.
At this point I didn't have anything locally that wasn't pushed so I decided to just start over.
I did this by doing amplify pull --appId 123 --envName staging
I was able to successfully pull my amplify backend and it looked good at first but then I saw that the GSI configuration I set via the dynammodb console was not there and further more I was getting the following message, which I think is preventing me from pushing now.
No AppSync API configured. Please add an API
When I do amplify status I see an API.
How can I get this link re-established and get the GSI configuration changes I needed made?
Any help or advice would be much appreciated, thanks!