DEV Community

Learn2Skills for AWS Community Builders

Posted on • Edited on

2

New Update-Amazon Cognito now provides user pool deletion protection

You can now activate deletion protection for your Amazon Cognito user pools. When you configure a user pool with deletion protection, the pool cannot be deleted by any user. Deletion protection is now active by default for new user pools created through the AWS Console. You can activate or deactivate deletion protection for an existing user pool in the AWS Console, the AWS Command Line Interface, and API. Deletion protection prevents you from requesting the deletion of a user pool unless you first modify the pool and deactivate deletion protection.

To configure deletion protection

  1. Go to the Amazon Cognito console. You might be prompted for your AWS credentials.
  2. Choose User Pools.
  3. Choose an existing user pool from the list, or create a user pool.
  4. Choose the User pool settings tab. Locate Deletion Protection and select Activate or Deactivate.
  5. Confirm your choice in the next dialogue.

Image description

When you want to delete a user pool with an Amazon Cognito API request, you must first change DeletionProtection to Inactive in an UpdateUserPool request. If you don't deactivate deletion protection, Amazon Cognito returns an InvalidParameterException error. After you deactivate deletion protection, you can delete the user pool in a DeleteUserPool request.

Amazon Cognito activates Deletion protection by default when you create a new user pool. You can activate or deactivate deletion protection status in the Deletion protection container in the User pool settings tab in the Amazon Cognito console.

Refer- Cognito User Pool


Sentry image

Hands-on debugging session: instrument, monitor, and fix

Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.

RSVP here →

Top comments (0)

Best Practices for Running  Container WordPress on AWS (ECS, EFS, RDS, ELB) using CDK cover image

Best Practices for Running Container WordPress on AWS (ECS, EFS, RDS, ELB) using CDK

This post discusses the process of migrating a growing WordPress eShop business to AWS using AWS CDK for an easily scalable, high availability architecture. The detailed structure encompasses several pillars: Compute, Storage, Database, Cache, CDN, DNS, Security, and Backup.

Read full post

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay