rebuy-de / aws-nuke

Nuke a whole AWS account and delete all its resources.
MIT License
5.51k stars 709 forks source link

AWS Cognito user pool deletion fails due to deletion protection #989

Open Dania8012 opened 1 year ago

Dania8012 commented 1 year ago

Encountered an error when I tried to remove the AWS Cognito User pool due to the enabled deletion protection. The issue becomes even more complex when aws-nuke removes the service role that manages the user pool, which makes removing the pool undoable unless you contact AWS Support to remove it.

I believe aws-nuke should be updated to disable deletion protection of the user pool before attempting to delete it.

CGarces commented 1 year ago

Root cause, since october 2022 https://aws.amazon.com/about-aws/whats-new/2022/10/amazon-cognito-console-user-pool-deletion-protection/