question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

amplify remove auth: what does it delete?

See original GitHub issue

Which Category is your question related to? Amplify CLI Auth

Amplify CLI Version 4.18.0

What AWS Services are you utilizing? Api, Auth, DymanoDB, Lambda, S3

I think I need to delete and recreate my Cognito user pool because I somehow deleted the sns-role and now I can’t save anything there. Plus there are some settings I want to change, but I can’t because these were set at creation, using Amplify-cli.

I tried using amplify update auth, but that didn’t work as expected.

So my next trick will be to remove Auth with amplify remove auth and then re-add a new one with a push in between.

My worry is this big, scary message:

? Are you sure you want to delete the resource? This action deletes all files related to this resource from the backend directory. (Y/n)

My question is: what is it going to delete? I don’t want it to delete anything but the user pool and maybe the associated identity pool.

So before I enter Y, I thought I’d ask.

Second question is: When I create and push the new Auth, will it just work with my existing back-end resources that have already been created in the same project with amplify cli, or am I gonna need to somehow re-wire stuff up?

Thanks,

Kim

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:5
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
kimfuciouscommented, Apr 14, 2020

Thanks @nikhname

I could not recover the sns-role for the life of me.

So I wound up removing auth completely and re-adding it.

And, despite the scary (potentially ambiguous?) warning message, it only deleted my auth stuff.

1reaction
nikhnamecommented, Apr 9, 2020

Sure thing @kimfucious. If the sns-role still exists in the stack used by your env it may still be recovered.

But yes to confirm your other resources will be untouched. You should not have to rewire anything from the API end when you create the new Auth roles.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Delete user - AWS Amplify Docs
Authentication. Delete user. Choose a platform: Android icon. Android. Flutter icon ...
Read more >
delete-backend-auth — AWS CLI 1.27.29 Command ...
--cli-input-json (string) Performs service operation based on the JSON string provided. The JSON string follows the format provided by --generate-cli-skeleton .
Read more >
amplify
uninstall, Remove all global Amplify configuration files and uninstall the Amplify CLI. This will not delete any Amplify projects.
Read more >
Enabling Users to Delete Their Own AWS Cognito Accounts
The AWS Amplify Auth.currentAuthenticatedUser returns a CognitoUser object with a deleteUser method, which allows you to do the following: ...
Read more >
Cleaning Up - Amplify iOS Workshop
Deleting via Amplify. Amplify does a pretty good job of removing the cloud resources we've provisioned for this workshop (just by attempting to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found