Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An error occurred when removing the resources from the local directory #13030

Closed
2 tasks done
ykethan opened this issue Jul 28, 2023 · 1 comment · Fixed by #13041
Closed
2 tasks done

An error occurred when removing the resources from the local directory #13030

ykethan opened this issue Jul 28, 2023 · 1 comment · Fixed by #13041
Assignees
Labels
auth Issues tied to the auth category of the CLI bug Something isn't working p3 platform Issues tied to the general CLI platform

Comments

@ykethan
Copy link
Member

ykethan commented Jul 28, 2023

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

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:

  1. create a auth resource amplify add auth
  2. create a user pool group amplify update auth-> Create or update Cognito user pool groups
  3. amplify remove auth -> select the user pool and observe error

option 2:

  1. amplify add api -> GraphQL -> use Cognito User Pools
  2. 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.
@ykethan ykethan added pending-triage Issue is pending triage bug Something isn't working platform-build Issues related to building resources with `amplify build` platform Issues tied to the general CLI platform auth Issues tied to the auth category of the CLI and removed pending-triage Issue is pending triage platform-build Issues related to building resources with `amplify build` labels Jul 28, 2023
jhockett added a commit to jhockett/amplify-cli that referenced this issue Jul 31, 2023
jhockett added a commit to jhockett/amplify-cli that referenced this issue Aug 1, 2023
@josefaidt josefaidt added the p3 label Aug 1, 2023
@github-actions
Copy link

github-actions bot commented Aug 8, 2023

⚠️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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auth Issues tied to the auth category of the CLI bug Something isn't working p3 platform Issues tied to the general CLI platform
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants