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

Unable Unlink Cognito User Pool and Identity Pool for deleted identity pool

Open inv-bismillahkhans opened this issue 3 years ago • 7 comments

Before opening, please confirm:

App Id

d1cjnlfryemnao

Region

ap-northeast-1

Environment name

stagging

Amplify CLI Version

No response

If applicable, what version of Node.js are you using?

7.6.5

What operating system are you using?

ubuntu

Browser type?

Google chrome

Describe the bug

I have two amplify application having shared same cognito service . i deleted one amplify application which delete cognito service i am Unable to Unlink Cognito User Pool and Identity Pool for deleted identity pool from my present amplify application. image image [32mEdit your schema at /tmp/amplify-cb0489a2-ac5c-4898-8782-cabfb5587431/amplify/backend/api//schema.graphql or place .graphql files in a directory at /tmp/amplify-cb0489a2-ac5c-4898-8782-cabfb5587431/amplify/backend/api//schema[39m [31mFailed to pull the backend.[39m [31mThe previously configured Cognito User Pool: '' (ap-northeast-1_IjOP6KWKW) cannot be found.[39m [0mError: The previously configured Cognito User Pool: '' (ap-northeast-1_IjOP6KWKW) cannot be found.[0m [0m at headlessImport (/opt/amazon/lib/node_modules/@aws-amplify/cli/node_modules/@aws-amplify/amplify-category-auth/src/provider-utils/awscloudformation/import/index.ts:1199:13)[0m

Expected behavior

It should be unlink the cognito service

Reproduction steps

1.create amplify application with cognito authentication service 2.Create another amplify application using previous cognito service 2.Delete first amplify application with cognito 3. Unllink the cognito from the second amplify application

Additional information

No response

inv-bismillahkhans avatar Jan 21 '22 11:01 inv-bismillahkhans

Hi @inv-bismillahkhans,

Thanks for reporting. The current behavior of unlink expects a user pool to exist, else it would throw an error. I will discuss with the team on this particular use-case and get back to you.

abhi7cr avatar Jan 24 '22 18:01 abhi7cr

I am facing the same issue, did you find a solution ?

DavidBelkacem avatar Jul 02 '22 18:07 DavidBelkacem

likewise - can't reconnect a user pool because I can't unlink it, can't unlink it because it's gone

reeslabree avatar Sep 02 '22 18:09 reeslabree

Same @abhi7cr - can you please provide an update on this ?

sanghvian avatar Oct 11 '22 09:10 sanghvian

Hello.

The issue persist, does anybody have an update or solution about this incident?

Regards.

Ge0rgear avatar Jan 07 '23 20:01 Ge0rgear

Was there ever a solution for this? I am facing a similar issue as well too.

Newbgen avatar Jun 13 '23 13:06 Newbgen

https://github.com/aws-amplify/amplify-cli/issues/13588#issuecomment-1944592664 workaround using Amplify CLI to update the resource

ykethan avatar Feb 16 '24 00:02 ykethan

Amplify CLI is the recommended approach for making the required updates. I will close this ticket

cwoolum avatar May 15 '24 23:05 cwoolum

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see. If you need more assistance, please open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.

github-actions[bot] avatar May 15 '24 23:05 github-actions[bot]