e544f08505
DRAFT for mfa demo * for mfa demo * Merge branch 'main' of bitbucket.org:aarete/query-orchestration into feature/cognito-mfa-1 * Merge branch 'main' of bitbucket.org:aarete/query-orchestration into feature/cognito-mfa-1 * cleanup * list cognito users * Merge branch 'main' of bitbucket.org:aarete/query-orchestration into feature/cognito-mfa-1
838 B
838 B
AWS Cognito User Pool Deletion Script
Overview
This script (delete.all.sh) automates the process of deleting an AWS Cognito User Pool and its associated domain. It's designed to clean up Cognito resources that were created for testing purposes.
What the Script Does
- Identifies a Cognito User Pool by its domain prefix (
aarete-mfa-test) - Deletes the domain associated with the User Pool
- Waits for the domain deletion to complete (30-second wait)
- Deletes the User Pool itself
- Confirms successful cleanup
Prerequisites
- AWS CLI installed and configured
- Appropriate AWS permissions to delete Cognito resources
- AWS profile named "aarete" configured
Configuration
The script uses the following configuration:
- AWS Region: us-east-2
- AWS Profile: aarete
- Domain Prefix: aarete-mfa-test