Language

ALB Routing & TLS · Lesson 17 of 30

Path & Host Routing

Source: doonops-curriculum/aws-routing--path-host-routing.md

Doonops lesson

Goal

Send /api to API servers and / to web servers — same ALB.

Simple explanation

Receptionist reads URL path: /api → backend team, / → frontend team.

Technical view

Receptionist reads URL path: /api → backend team, / → frontend team.

Think of it like

Receptionist reads URL path: /api → backend team, / → frontend team.

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

Listener rules have priority — lower number wins first. Conflicts = exam trap.

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/14-alb-routing/

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