AWS
Updated 15 Nov 2026
Tips and tricks
Account and security
- Don’t use the root user day to day. Turn on MFA for it, then lock it away.
- Use IAM Identity Center (SSO) instead of long-lived access keys. Log in with
aws sso login --profile <name>. - Turn on S3 Block Public Access at the account level unless you really need public buckets.
- Use Session Manager to get a shell on EC2 instances instead of opening port 22 and managing SSH keys.
Billing
- Set up an AWS Budget with an email alert on day one. A forgotten resource can quietly run up a bill.
- Tag everything (
project,owner,env) and turn on cost allocation tags so Cost Explorer can break spending down by tag. - Common surprise costs:
- NAT Gateways (hourly charge plus per-GB data processing)
- Public IPv4 addresses, including idle Elastic IPs
- Unattached EBS volumes and old snapshots
- Incomplete S3 multipart uploads (add a lifecycle rule to abort them)
- Data transfer out to the internet and across regions
- Graviton (ARM) instances are usually cheaper than x86 for the same performance. Spot instances are much cheaper for work that can be interrupted.
Regions
- Most resources are regional. If something “disappeared,” check the region selector in the console first.
- IAM, billing, and Route 53 are global.
- ACM certificates for CloudFront must be created in
us-east-1. - Resource Explorer and Tag Editor can search for resources across all regions.
CLI
aws sts get-caller-identityshows which account and role you’re actually using.aws configure listshows where your credentials and region are coming from.- Set
AWS_PROFILEto switch between accounts without passing--profileevery time. -
--queryfilters output with JMESPath, and--output tablemakes it readable:aws ec2 describe-instances \ --query 'Reservations[].Instances[].[InstanceId,State.Name,Tags[?Key==`Name`]|[0].Value]' \ --output table aws s3 synccopies only changed files, so it works well for deploying static sites.- CloudShell gives you a browser terminal with the CLI already logged in.
Local development
- https://github.com/aws/aws-emulator
- LocalStack emulates many AWS services locally.
Resources
Guides
- The Open Guide to AWS, a community guide full of practical tips and gotchas
- AWS in Plain English, what each service actually does, with better names
- Awesome AWS, a curated list of libraries, tools, and guides
- Amazon Builders’ Library, articles on how Amazon builds and runs its own systems
- AWS Well-Architected Framework, AWS’s best practices for security, reliability, and cost
Tools
- AWS Pricing Calculator, for estimating costs before you build
- AWS Free Tier, what you can use for free
- Vantage Instances, a searchable table of EC2 instance types and prices
- permissions.cloud, a reference for which IAM permissions each API call needs
- Filtering AWS CLI output, the docs for
--query
News
- Last Week in AWS, Corey Quinn’s newsletter on AWS news and billing