AWS Builder Center
12 AWS CLI and console tricks that save beginners hours

12 AWS CLI and console tricks that save beginners hours

Twelve quick AWS console and CLI v2 tricks: CloudShell, Tag Editor, --query, --filters, logs tail and more. Each one takes under a minute to learn.

Dev
Most beginners use AWS by clicking around the console and copying commands from tutorials. That works, until you need to find one resource across five Regions, or you're stuck with output too long to read. These 12 tricks cover the console and the AWS CLI v2. Each one takes under a minute to learn.
AWS CLI and console cheat sheet


Console

1. Open a shell without installing anything

Click the CloudShell icon in the console's top bar. You get a browser terminal with the AWS CLI pre-installed and already signed in with your console permissions. It's free, and it's the fastest way to try any command below without setting up access keys.

2. Find any resource by tag, across Regions

Tag everything you create (for example  Project=demo ). Later, Resource Groups → Tag Editor lists every resource with that tag across services and Regions. That's the quickest cleanup checklist there is.

3. Search everything with Resource Explorer

Turn on AWS Resource Explorer once, and the console search bar can find resources by name or tag across Regions. It answers "where did I create that bucket?" in seconds.

4. Check your limits before you hit them

Service Quotas shows your account's limit for things like running instances or vCPUs. Check it before a hackathon demo, not during one.

CLI basics

5. Confirm who you are first

aws sts get-caller-identity
It prints the account ID and the identity you're using. Run it before anything destructive. Most "I deleted the wrong thing" stories start with the wrong profile.

6. Let the CLI help you type

aws --cli-auto-prompt
You get interactive completion for services, operations and parameters, with docs inline. Turn it on permanently with  aws configure set cli_auto_prompt on-partial .

7. Stop the pager

The CLI pipes long output into a pager by default, which breaks scripts. Set this once:
export AWS_PAGER=""
Or add  --no-cli-pager  to a single command.

Getting the output you want

8. Filter output with  --query 

 --query  takes a JMESPath expression and runs on your side, so you see only what you need:
aws ec2 describe-instances \
--query "Reservations[].Instances[].[InstanceId,State.Name,InstanceType]" \
--output table

9. Pick the right format

 --output table  is for reading,  --output text  is for shell scripts, and  --output json  is for piping into  jq . The same command can serve all three.

10. Filter on the server with  --filters 

Many  describe-*  commands accept  --filters , which AWS applies before returning results. That's faster than downloading everything:
aws ec2 describe-instances --filters "Name=instance-state-name,Values=running"

Everyday wins

11. Tail logs live

aws logs tail /aws/lambda/my-function --follow
It streams CloudWatch Logs into your terminal while you test. Add  --since 10m  to start from ten minutes ago.

12. Preview before you sync

aws s3 sync ./site s3://my-bucket --dryrun
 --dryrun  lists every upload and delete without doing any of them. Always run it once before adding  --delete .

Bonus: profiles without long-term keys

If your organisation or classroom uses IAM Identity Center, run:
aws configure sso
The CLI signs you in through the browser and uses short-term credentials, so there's no access key sitting on your laptop. Use  --profile name  (or  export AWS_PROFILE=name ) to switch accounts.
Which of these was new to you, and what's the one CLI trick you'd add to this list?
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article