amplify-studio icon indicating copy to clipboard operation
amplify-studio copied to clipboard

Unable to unlink authentication that no longer exists

Open carogs opened this issue 4 years ago • 9 comments

Before opening, please confirm:

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:

  1. When accessing the 'Authentication' hyperlink via AWS Amplify Console app 'Backend environment' tab, the tab spin wheels perpetually rsa-auth-page
  2. 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: " " rsa-auth rsa-failure

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:

  1. When accessing the 'Authentication' hyperlink via AWS Amplify Console app 'Backend environment' tab, the tab spin wheels perpetually rsa-auth-page
  2. 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: " " rsa-auth rsa-failure

Additional information

No response

carogs avatar Mar 17 '22 16:03 carogs

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 avatar Mar 25 '22 21:03 busster

@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.

image

righteousgambit avatar May 20 '22 14:05 righteousgambit

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 avatar Sep 08 '22 01:09 mcrysler

@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.

righteousgambit avatar Sep 08 '22 01:09 righteousgambit

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: @.***>

mcrysler avatar Sep 08 '22 01:09 mcrysler

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.

righteousgambit avatar Sep 08 '22 02:09 righteousgambit

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!

mcrysler avatar Sep 08 '22 03:09 mcrysler

Thanks so much for the help, @righteousgambit!

mcrysler avatar Sep 08 '22 03:09 mcrysler

Closing the issue as resolved.

ykethan avatar Dec 23 '22 20:12 ykethan