$ run as a normal user# run as root (or with sudo)
Skills in this chapter
- FinOps — P992–P1001
Landing zone: accounts, network, guardrails
The landing zone is a constraint design, and the diagram is only its picture.
The first landing zone decision is not the VPC. It is how many accounts you are willing to create before the audit asks why.
- Accounts: Shared services, Dev accounts, Prod accounts, Sandbox
- Network: Transit hub, Shared VPC, Egress VPC
- Guardrails: Service control policies, Org policy, Log archive, Budget actions
Full note: P992 — Landing zone: accounts, network, guardrails
A tagging strategy that survives an audit
A tag is a claim about ownership, and the audit tests the claim.
Every tagging strategy looks fine in the wiki. The audit is where it meets the invoice, and the invoice has no opinion about your naming convention.
- Four classes: Billing, ownership, lifecycle and data class, kept separate so each key answers one question.
- One schema: Required keys, closed value lists and a default, stored as data and reviewed like code.
- Enforce early: Policy at creation, tags from the module, and a pipeline that fails the plan.
- Evidence on demand: A generated pack that reconciles to the invoice, including the part it does not cover.
Five cloud bill leaks
Five leaks make up most of a surprise cloud bill, and none of them is exotic.
- Idle non-production running nights and weekends
- Orphaned volumes and snapshots nobody deletes
- NAT gateway data processing on every byte
- Log retention longer than the question
Full note: P994 — Five cloud bill leaks
Multi-account structure commands
The account id is the first fact in any cost conversation.
Before you argue about cost, know which account you are in. These are the commands that answer it, and none of them needs a role you do not already have.
- Org:
aws organizations list-accounts - Accounts:
aws sts get-caller-identity - Network:
aws ec2 describe-transit-gateways - Guardrails:
aws cloudtrail describe-trails
Full note: P995 — Multi-account structure commands
Responding to a cost anomaly in one hour
Confirm, locate, contain, fix, in that order.
A cost anomaly is an incident with a clock. The first hour decides whether you contain it or explain it next month.
- Confirm: Ten minutes on the data, the day and the account before you chase a service.
- Locate: Group by service, account, usage type and resource until one row carries the delta.
- Contain: Reversible changes, recorded with a timestamp, agreed before they touch production.
- Prevent: A budget, a monitor, an owner tag and a note that names the detection lag.
Rightsizing in four numbers
Size for the workload you measured, not the one in the diagram.
Rightsizing arguments end when someone brings four numbers to the meeting.
- 14d of p95 CPU and memory, not one spike.
- 20% headroom over p95 when you pick the size
- 2 sizes down per change, then measure again
- 0 resizes without a rollback and a before number
Full note: P997 — Rightsizing in four numbers
Egress paths: instance, NAT, firewall, internet
Trace the flow before you argue about the rate.
Every byte that leaves a private subnet walks the same six hops, and each one adds a line to the bill.
- Workload instance: Private subnet, no public address
- Route table: 0.0.0.0/0 points at the NAT gateway
- NAT gateway: One per AZ, billed hourly and per GB
- Egress firewall: FQDN allow-list, every flow logged
Full note: P998 — Egress paths: instance, NAT, firewall, internet
Reserved capacity or on-demand: a decision guide
Commit to the floor, not the average.
Reserved capacity is sold as a discount and behaves like a fixed cost. The two are not the same, and the gap is the whole decision.
- Price the risk: A commitment trades rate for flexibility. The unused hours are a fixed cost, not a discount.
- Do the arithmetic: Break-even hours per family and region, printed, not blended across the estate.
- Commit to the floor: The quiet-week level, with on-demand and spot carrying the peak and the batch.
- Name the owner: One person reviews utilisation monthly, and the term matches the roadmap.
Full note: P999 — Reserved capacity or on-demand: a decision guide
FinOps habits that stick
The tool shows the number, and the habit is what changes it.
FinOps does not fail because the tools are wrong. It fails because the habits do not survive a busy quarter.
- A weekly fifteen-minute bill review, same slot
- Every new resource gets an owner tag at creation
- One cost metric beside latency on the same board
- Commitments reviewed before the renewal, not after
Full note: P1000 — FinOps habits that stick
Budget guardrails in six numbers
A threshold that arrives after the invoice is a receipt.
Budget guardrails are thresholds, not reports. Six numbers cover most of the design.
- 80% warn before the wall: Warn at 80, page at 100, never after.
- 100% prod spend tagged: Owner and cost centre on every resource.
- 8h budget refresh cadence: Plan for three updates a day, not live.
- 30d anomaly baseline: Thirty days of normal before you alert.
Full note: P1001 — Budget guardrails in six numbers