AWS cheat sheet

AWS provides cloud infrastructure and platform services for DevOps.

On this page

Table of contents

Use this page for fast recall. Use Full documentation when you want the complete end-to-end path.

Quick workflow

A simple 5-step flow you can follow when using AWS in real work.

1) Setup

Install/run the tool and confirm version. Create a minimal config.

2) Small change

Do one small action end-to-end to prove the workflow.

3) Validate

Check output, logs, and status. Catch mistakes early.

4) Automate

Convert it into a repeatable script or pipeline step.

5) Productionize

Add safety: secrets, rollback, observability, and docs.

Workflows you will actually reuse

These are practical sequences you can copy into your own checklist or runbook.

New environment checklist

Goal: Create a clean dev/stage/prod environment with least privilege.

- Set up IAM roles and avoid long-lived access keys where possible.

- Create networking (VPC, subnets, routes) with IaC.

- Deploy compute (ECS/EKS/EC2) with monitoring and logs.

- Add backups, alerts, and cost budgets.

- Document access patterns and incident response basics.

Key Concepts

- IAM

- Networking

- Compute

Learning path (high-level):

- Secure account setup

- Deploy workloads

- Automate with IaC

Quick Start

Configure CLI

Command

aws configure

Check identity

Command

aws sts get-caller-identity

List buckets

Command

aws s3 ls

Common Commands

Short descriptions and practical intent. Search, filter, copy, and reuse.

Showing 14

Basics
aws sts get-caller-identity

Show current identity/account.

Basics
aws configure

Configure credentials and default region.

Storage
aws s3 ls

List S3 buckets.

Storage
aws s3 cp file s3://bucket/path

Copy file to S3.

Compute
aws ec2 describe-instances

List EC2 instances.

Networking
aws ec2 describe-security-groups

List security groups.

Containers
aws ecr get-login-password | docker login --username AWS --password-stdin <account>.dkr.ecr.<region>.amazonaws.com

Login Docker to ECR.

Kubernetes
aws eks list-clusters

List EKS clusters.

Kubernetes
aws eks update-kubeconfig --name <cluster>

Configure kubectl for EKS.

IAM
aws iam list-users

List IAM users.

IAM
aws iam get-user

Get current IAM user.

IaC
aws cloudformation list-stacks

Show CloudFormation stacks.

Observability
aws cloudwatch describe-alarms --max-records 20

List CloudWatch alarms.

Observability
aws logs tail /aws/lambda/my-fn --follow

Stream CloudWatch logs.

Copyable snippets

Small blocks you can drop into your terminal, config, or runbook.

ECR login (example)

bash

aws ecr get-login-password | docker login --username AWS --password-stdin <account>.dkr.ecr.<region>.amazonaws.com

Troubleshooting checklist

When things break, follow this order to stay calm and move fast.

- If API calls fail: check region, credentials, and IAM permissions.

- If networking is broken: verify security groups/NACLs and route tables.

- If deployments fail: check service logs (CloudWatch) and resource quotas.

Pitfalls

The common mistakes that slow people down when using AWS.

- Copy-pasting commands without understanding inputs/outputs and side effects.

- Not documenting defaults (ports, paths, credentials) and then getting stuck in prod.

- Skipping logs and metrics when troubleshooting; always collect evidence first.

Mini lab (practice)

Do these tasks in order. You will feel the tool instead of just reading about it.

- Install or run the tool locally (or in Docker) and verify it works with a hello-world action.

- Create a minimal config and run the most common command 3 times (with a small change each time).

- Break something on purpose and document how you debugged it in your Notes.

Interview prompts

Use these to test if you truly understand the basics (and can explain them clearly).

- Explain the tool’s role in a real CI/CD pipeline from commit to production.

- Describe the most common failure you’ve seen with this tool and how you fixed it.

- What would you monitor/alert on for this tool in production?

Official Docs

https://docs.aws.amazon.com/