This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Stop all containers | |
| docker stop `docker ps -qa` | |
| # Remove all containers | |
| docker rm `docker ps -qa` | |
| # Remove all images | |
| docker rmi -f `docker images -qa ` | |
| # Remove all volumes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| """ | |
| The following script demonstrates how to use the AWS Boto3 SDK to iterate through | |
| all of the users in an AWS Cognito User Pool and examine the events associated | |
| with each user. | |
| If any failed authentication events are found the script formats them as messages | |
| and logs them to CloudWatch logs. | |
| This script could easily be modified to run periodically as a Lambda function |