Describe the bug
This task
|
aws cognito-idp list-user-pools --max-results 1 | jq -r .UserPools[0].Id |
can delete Cognito User Pools not provisioned by AgnosticD since the first one is retrieved from the list of pools.
This is a problem when prior User pools exist because pools get deleted "randomly" during deployment.
Expected behavior
The user pool to be deleted (and provisioned by AgnosticD) is determined based on name or tag. Then it is deleted by ID.