I updated my AWS Amplify API and added more nested layers to my GraphQL schema:
$ amplify configure codegen
$ amplify codegen statements
$ amplify push
I also wanted to update my S3 storage to add different permissions:
$ aws amplify update storage
$ amplify push
But this fails with Resource is not in the state stackUpdateComplete
.
My solution:
$ amplify update auth
Choose the option “Yes, use default configuration” (uses the Cognito Identitypool).
Then:
$ amplify push
Remove the storage:
$ amplify remove storage
$ amplify push
Then add it back it:
$ amplify add storage
Choose the options you like then:
$ amplify push
It should work now.