🖥️aws
➡️This is a command-line reference manual for commands and command combinations that you don’t use often enough to remember it. This cheatsheet explains the aws command with important options and switches using examples.
2 minute read
▁ ▂ ▃ ▄ ꧁ 🔴☠ COMMANDLINE-KUNGFU WITH CHEATSHEETS ☠🔴꧂▅ ▃ ▂ ▁
# █████╗ ██╗ ██╗███████╗
# ██╔══██╗██║ ██║██╔════╝
# ███████║██║ █╗ ██║███████╗
# ██╔══██║██║███╗██║╚════██║
# ██║ ██║╚███╔███╔╝███████║
# ╚═╝ ╚═╝ ╚══╝╚══╝ ╚══════╝
# install aws cli
pip install awscli
# configure AWS CLI
aws configure
# describe instances in the current account
aws ec2 describe-instances --instance-ids i-01234567
# list public IP addresses of instances
aws ec2 describe-instances \
--query "Reservations[*].Instances[*].PublicIpAddress" \
--output=text
# start instance with the specified id
aws ec2 start-instances --instance-ids i-12345678c
# copy directory to S3
aws s3 cp ${directory} s3://${bucket}/${directory} --recursive
# sync directory with S3
aws s3 sync ${directory} s3://${bucket}/${directory} --exclude *.tmp
# list s3 buckets
aws s3 ls
# remove s3 bucket
aws s3 rb --force s3://${bucket_name}
# get bucket logging
aws s3api get-bucket-logging --bucket ${bucket_name}
# AWS cloudformation list stacks
aws cloudformation list-stacks \
--stack-status-filter [ CREATE_COMPLETE | UPDATE_COMPLETE | etc.. ]
# other useful commands:
# https://github.com/toddm92/aws/wiki/AWS-CLI-Cheat-Sheet
Cheatsheets are an excellent complement to other information sources like Linux man-pages, Linux help, or How-To’s and tutorials, as they provide compact and easily accessible information. While man-pages and detailed tutorials often contain comprehensive explanations and extensive guides, cheatsheets summarize the most important options forthe command aws in a clear format. This allows users to quickly access the needed information for aws without having to sift through lengthy texts. Especially in stressful situations or for recurring tasks, cheatsheets for aws are a valuable resource to work efficiently and purposefully.
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
█║▌│║█║▌★ KALI ★ PARROT ★ DEBIAN 🔴 PENTESTING ★ HACKING ★ █║▌│║█║▌
██╗ ██╗ ██████╗ ██████╗ ██╗ ██╗███████╗██████╗
████████╗██╔══██╗██╔═══██╗╚██╗██╔╝██╔════╝██╔══██╗
╚██╔═██╔╝██║ ██║██║ ██║ ╚███╔╝ █████╗ ██║ ██║
████████╗██║ ██║██║ ██║ ██╔██╗ ██╔══╝ ██║ ██║
╚██╔═██╔╝██████╔╝╚██████╔╝██╔╝ ██╗███████╗██████╔╝
╚═╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝╚══════╝╚═════╝
█║▌│║█║▌ WITH COMMANDLINE-KUNGFU POWER █║▌│║█║▌
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.