6/2/2023 0 Comments Install aws cli![]() ![]() # list all instances (running, and not running) public-key-material file:///home/apollo/id_rsa.pubĪws ec2 authorize-security-group-ingress \ # create a new private / public keypair, using RSA 2048-bit policy-arn arn:aws:iam::aws:policy/AdministratorAccess # list all users, groups, and roles, for a given policy # allUsers=$(aws iam list-users -output text | cut -f 6) Īws iam create-group -group-name FullAdmins ![]() Limits = 5000 users, 100 group, 250 roles, 2 access keys / userĪws iam list-users -output text | cut -f 6 Join # combine rows of text, by initial column valueĥ Trails total, with support for resource level permissions # list all trailsĪws cloudtrail describe-trails -output text | cut -f 8 Tr ' ' \\t # translate / convert characters to other characters Tail -n 2 # print all lines, starting on the 2nd Sed 1d # print all lines, except the first Sed -n '5' # print the 5th line in a file With this single tool we can manage all the aws resources sudo apt-get install -y python-dev python-pipĬut -f 2 # print the 2nd column, per line AWS CLI Cheat sheet - List of All CLI commands Setup Install AWS CLIĪWS CLI is an common CLI tool for managing the AWS resources.
0 Comments
Leave a Reply. |