Skip to content

bjoernHeneka/useful-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

useful-scripts

My personal collection of useful scripts

Prerquisites:

  • package jq is required for some commands

AWS

ECS

  • 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          

EC2

  • Show all instances within an account Usage:
./aws/ec2/show-all-instances.sh

Cloudwatch

  • Set all coudwatch logs to specific retention date Usage:
./aws/cloudwatch/updateExpire.sh -r 30 -p my-great-profile-name

Cognito

  • 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published