Language

CloudWatch & NLB · Lesson 22 of 30

Network Load Balancer

Source: doonops-curriculum/aws-observability--nlb-tcp.md

Doonops lesson

Goal

NLB when you need TCP speed, not HTTP routing.

Simple explanation

ALB = smart HTTP receptionist. NLB = fast forklift for raw TCP.

Technical view

ALB = smart HTTP receptionist. NLB = fast forklift for raw TCP.

Think of it like

ALB = smart HTTP receptionist. NLB = fast forklift for raw TCP.

Steps

  1. Read simple section
  2. Read analogy + diagram
  3. Copy project files
  4. Do local lab

Deep explanation

Layman words first, then technical detail — read slowly

Games, TLS pass-through, static IPs — NLB use cases.

Example (Doonops)

Modern HCL — names are examples, not from any third-party course

Example HCL
HCL
# see project files

Terraform runs on your computer — copy this HCL into a folder, then follow the local lab steps below.

Quick check

  • Explain topic to a friend in 2 sentences
  • Did local lab steps

Project files for this lab

Full implementation folder — copy all files, then run terraform commands

Lab project files (full folder)

Copy every file below into one folder — same as a real repo module. Then run the local lab steps.

Suggested folder: Suggested path: ~/doonops-terraform/19-nlb/

versions.tfSee file purpose in the code below
terraform {
  required_version = ">= 1.9.0"
}

Module check — did you get it?

2–3 quick questions before the next module

Observability — quick check

Quick check — did this module stick?

1. CloudWatch alarm triggers when…

  • You run git push
  • A metric crosses a threshold you set
  • Terraform init fails
  • Free tier ends