My personal collection of useful scripts
Prerquisites:
- package jq is required for some commands
- Show details about running tasks for a defined service in cluster Usage:
./aws/ecs/retrieveServiceTasks.sh -p my-great-profile-name -c my-cluster -s my-service
- Show all instances within an account Usage:
./aws/ec2/show-all-instances.sh
- Set all coudwatch logs to specific retention date Usage:
./aws/cloudwatch/updateExpire.sh -r 30 -p my-great-profile-name
- Delete all users of a cognito user pool Usage:
./aws/cognito/deleteAllUsers.sh -p my-great-profile-name -u eu-centra-1_424242
- Add all users to a specific group
./aws/cognito/addUsersToGroup.sh.sh -p my-great-profile-name -u eu-centra-1_424242 -g my-group
- Import users from CSV
./aws/cognito/importUsers.sh \
-p my-great-profile-name \
-u eu-centra-1_424242 \
-f /path/to/file.csv \
-r arn:aws:iam::123456789:role/service-role/Cognito-Import-Role