Foundations
Infrastructure as Code, HCL syntax, provider และ resource, dependency graph และ workflow init/plan/apply เริ่ม →
Foundations
Infrastructure as Code, HCL syntax, provider และ resource, dependency graph และ workflow init/plan/apply เริ่ม →
State Management
state file, remote backend และ locking, drift detection กับ import และข้อมูล sensitive ใน state จัดการ state →
Variables & Data Flow
input variable, output กับ local, expression และ function และ count เทียบกับ for_each ต่อสาย →
Modules
เขียน module ที่ reuse ได้, การ compose และ source, versioning และการ test ด้วย terraform test compose →
Multi-Environment
ปัญหา dev/staging/prod, Terraform workspace, pattern แบบ directory-per-environment และทำไมต้องมี Terragrunt ขยายสเกล →
Terragrunt Fundamentals
root.hcl, DRY configuration ด้วย include, dependency block ระหว่าง unit และการรันหลาย unit พร้อมกัน ทำให้ DRY →
Production & Ecosystem
CI/CD สำหรับ infrastructure, policy as code กับ static analysis, secret และ credential และ production checklist ขึ้น production →
เข้าใจ model ก่อน แล้วค่อยดู HCL
ทุกหัวข้อเริ่มจาก model — dependency graph, state file, ปัญหา DRY ที่ Terragrunt แก้ — พอเข้าใจแล้วพฤติกรรมของ Terraform จะกลายเป็นกลไกที่คุณเข้าใจ ไม่ใช่ HCL ที่ copy-paste ตามกัน
ตาม practice ปัจจุบัน ที่ verify แล้ว
เขียนตาม practice ปัจจุบันของ Terraform และ Terragrunt และตรวจสอบกับ official docs ผ่าน context7 — รวมถึงการปรับ CLI ของ Terragrunt เป็น run --all ซึ่ง tutorial เก่าหลายที่ยังสอนผิดอยู่
Azure จริง trade-off จริง
ไม่ใช่แค่ “นี่คือ resource block” แต่เป็น “remote state ให้อะไรจริง ๆ และตรงไหนที่ isolation ของ workspace เดียวกันยังพังได้” คุณจะ reason เรื่องการเปลี่ยนแปลง infrastructure ได้อย่างมั่นใจ
ไดอะแกรมที่อธิบายได้
dependency graph, Terraform workflow, state locking และลำดับ dependency ระหว่าง unit ของ Terragrunt เป็นไดอะแกรม Mermaid ที่รองรับธีม สองภาษา (English / ไทย) พร้อมบันทึกความคืบหน้า quiz