Unable to unlink authentication that no longer exists
Before opening, please confirm:
- [X] I have searched for duplicate or closed issues.
- [X] I have read the guide for submitting bug reports.
- [X] I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
App Id
ddtru2rq6hmz0
Region
us-east-1
Environment name
No response
Amplify CLI Version
No response
If applicable, what version of Node.js are you using?
No response
What operating system are you using?
No response
Browser type?
No response
Describe the bug
Unable to unlink authentication that no longer exists. After deleting an older AWS Amplify Console app, this caused the authentication to be deleted that was shared between other console apps.
Issues:
- When accessing the 'Authentication' hyperlink via AWS Amplify Console app 'Backend environment' tab, the tab spin wheels perpetually

- After launching the 'Amplify Studio' and accessing the 'Authentication' tab, the details for the mistakenly deleted authentication are still present with acknowledgement from the system that the User pool does not exist, however, when clicking the 'Unlnk Cognito User Pool and Identity Pool', the system fails with the error "The previously configured Cognito User Pool: " "

What can be done to disconnect the non-existent authentication?
Expected behavior
Ability to access and remove non-existent authentications within AWS Amplify Console apps.
Reproduction steps
Issues:
- When accessing the 'Authentication' hyperlink via AWS
Amplify Console app 'Backend environment' tab, the tab spin wheels perpetually

- After launching the 'Amplify Studio' and accessing the 'Authentication' tab, the details for the mistakenly deleted authentication are still present with acknowledgement from the system that the User pool does not exist, however, when clicking the 'Unlnk Cognito User Pool and Identity Pool', the system fails with the error "The previously configured Cognito User Pool: " "

Additional information
No response
Hey @carogs, I am looking into this issue. To remedy this immediately, you can use the CLI to unlink the removed auth resource. See the bottom of this page for the CLI command.
@busster I have the same issue - but I don't have the app pulled in to my CLI - when I attempt to pull it in to remove the auth, it won't pull the backend because the cognito pool doesn't exist.

I am running into the exact same issue! The previous user pool no longer exists. I've tried to unlink it via the Amplify Studio and the deployment phase fails exactly as above. I've also tried to pull the environment via the CLI and it fails stating the user pool no longer exists. Please help!
@mcrysler you will have to reach out to support and get guidance regarding how to delete the amplify configurations hosted in the S3 bucket that underpin your Cognito User Pool. If you don't have developer support, I can probably scrounge up my notes.
So they were able to solve your issue? I can root around the bucket if that’s what is needed. What a bummer that there isn’t a more elegant fix for this. I REALLY appreciate your response and would love any notes you can share!
On Wed, Sep 7, 2022 at 7:55 PM Wes Ladd @.***> wrote:
@mcrysler https://github.com/mcrysler you will have to reach out to support and get guidance regarding how to delete the amplify configurations hosted in the S3 bucket that underpin your Cognito User Pool. If you don't have developer support, I can probably scrounge up my notes.
— Reply to this email directly, view it on GitHub https://github.com/aws-amplify/amplify-adminui/issues/511#issuecomment-1240125568, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABSATFHR423LZPIH3POXRXLV5FBQJANCNFSM5Q7KMJNA . You are receiving this because you were mentioned.Message ID: @.***>
There are specific folder directories in an s3 bucket auto-generated by amplify. In those directories, you will find the configuration as JSON that needs to be removed, once removed it will automatically "re-sync" and clear the error. Support was definitely helpful with the specific paths and I missed one figuring it out on my own, so you definitely want to ask them if you need further guidance.
Wow! Yeah, I had to modify the amplify-meta.json, the backend-config.json and then unpack the #current-cloud-backend.zip file and make the same modifications and re-upload all of them to S3 and THEN I was able to pull the environment and add my appropriate auth config. What a pain!
Thanks so much for the help, @righteousgambit!
Closing the issue as resolved.