amplify-studio
amplify-studio copied to clipboard
Unable Unlink Cognito User Pool and Identity Pool for deleted identity pool
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
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.
[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
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.
I am facing the same issue, did you find a solution ?
likewise - can't reconnect a user pool because I can't unlink it, can't unlink it because it's gone
Same @abhi7cr - can you please provide an update on this ?
Hello.
The issue persist, does anybody have an update or solution about this incident?
Regards.
Was there ever a solution for this? I am facing a similar issue as well too.
https://github.com/aws-amplify/amplify-cli/issues/13588#issuecomment-1944592664 workaround using Amplify CLI to update the resource
Amplify CLI is the recommended approach for making the required updates. I will close this ticket
⚠️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.