0

I am working on a flutter project to which I-ve added AWS as backend. I deleted the user pool my auth component was using, so now it is pointing to a user pool that does no longer exist, causing every amplify push to fail with the following message:

Resource is not in the state stackUpdateComplete

Name: UserPool (AWS::Cognito::UserPool), Event Type: update, Reason: User pool us-east-1_XXXXXXX does not exist. (Service: AWSCognitoIdentityProviderService; Status Code: 400; Error Code: ResourceNotFoundException; Request ID: XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXX; Proxy: null), IsCustomResource: false

From my understanding, I now need to create a new cognito user pool, which I have already done, and then change my amplifyconfiguration.dart file to point to the new pool. However, this does nothing, and the problem still persists.

I have also tried changing the amplify-meta.json located at root > amplify > backend > amplify-meta.json to this:

  ...

  "auth": {
      ...
      "output": {
        ...
        "UserPoolId": "NEW_USER_POOL_ID",
        "UserPoolArn": "NEW_USER_POOL_ARN",
        "UserPoolName": "NEW_USER_POOL_NAME"
      }
  }

All while leaving the identity pool information the same. When I do this and try to do an amplify push once again, the data reverts back to the old user pool, and the push fails.

I'm still fairly new to amplify, so I would like to know what am I doing wrong and how should I actually proceed to change the user-pool.

JuanJoseC
  • 1
  • 1

0 Answers0