Skip to content

Instantly share code, notes, and snippets.

@thiagoeh
Last active October 28, 2020 12:50
Show Gist options
  • Save thiagoeh/b7fb5bcd8c75aec38fa0d10c2f91f173 to your computer and use it in GitHub Desktop.
Save thiagoeh/b7fb5bcd8c75aec38fa0d10c2f91f173 to your computer and use it in GitHub Desktop.
Some useful AWS CLI commands

JSON == So much scrolling!

export AWS_DEFAULT_OUTPUT="table"

or use aws configure and inform tableas the default output (this will be saved in ˜/.aws/config)

Who am I?

aws sts get-caller-identity

What are my Availability Zones "true names"?

aws ec2 describe-availability-zones

Which AMI ID to use?

aws ssm get-parameters --names /aws/service/ami-amazon-linux-latest/amzn2-ami-hvm-x86_64-gp\
  --region us-east-2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment