You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If applicable, what version of Node.js are you using?
No response
Amplify CLI Version
12.2.2
What operating system are you using?
Mac
Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
no
Describe the bug
When removing a resource that has another resource that depends on it the CLI will fail with the following error
ResourceRemoveFault: An error occurred when removing the resources from the local directory
at AmplifyToolkit.removeResource (/snapshot/repo/build/node_modules/@aws-amplify/cli-internal/lib/extensions/amplify-helpers/remove-resource.js:73:15)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Object.run (/snapshot/repo/build/node_modules/@aws-amplify/amplify-category-auth/lib/commands/auth/remove.js:21:26)
at async Object.executeAmplifyCommand (/snapshot/repo/build/node_modules/@aws-amplify/amplify-category-auth/lib/index.js:346:5)
at async executePluginModuleCommand (/snapshot/repo/build/node_modules/@aws-amplify/cli-internal/lib/execution-manager.js:139:5)
at async executeCommand (/snapshot/repo/build/node_modules/@aws-amplify/cli-internal/lib/execution-manager.js:37:9)
at async Object.run (/snapshot/repo/build/node_modules/@aws-amplify/cli-internal/lib/index.js:121:5)
Expected behavior
provide a clearer error message
Reproduction steps
option 1:
create a auth resource amplify add auth
create a user pool group amplify update auth-> Create or update Cognito user pool groups
amplify remove auth -> select the user pool and observe error
option 2:
amplify add api -> GraphQL -> use Cognito User Pools
amplify remove auth
Project Identifier
No response
Log output
# Put your logs below this line
Additional information
No response
Before submitting, please confirm:
I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
I have removed any sensitive information from my code snippets and submission.
The text was updated successfully, but these errors were encountered:
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.
How did you install the Amplify CLI?
No response
If applicable, what version of Node.js are you using?
No response
Amplify CLI Version
12.2.2
What operating system are you using?
Mac
Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
no
Describe the bug
When removing a resource that has another resource that depends on it the CLI will fail with the following error
Expected behavior
provide a clearer error message
Reproduction steps
option 1:
amplify add auth
amplify update auth
->Create or update Cognito user pool groups
amplify remove auth
-> select the user pool and observe erroroption 2:
amplify add api
->GraphQL
-> use Cognito User Poolsamplify remove auth
Project Identifier
No response
Log output
Additional information
No response
Before submitting, please confirm:
The text was updated successfully, but these errors were encountered: