Phase 9IaCPlan before apply

Infrastructure as Code

Phase นี้เปลี่ยนจากการสร้าง resource ด้วย Console ไปเป็นการสร้าง infrastructure แบบ repeatable, reviewable และ versioned ด้วย Terraform พร้อมทำความเข้าใจ CloudFormation และ AWS CDK ในฐานะ AWS-native IaC

Learning path

Phase 9 checklist จาก Roadmap

  • เข้าใจ Terraform Provider, Resource, Data Source, Variable, Local, Output, State, State Locking และ Module
  • ใช้ terraform fmt, validate, plan, apply และ destroy อย่างมีวินัย
  • จัด Remote State ใน S3 พร้อม locking และแยก environment เช่น dev, staging, prod
  • เข้าใจ Resource import, lifecycle, secret handling, CloudFormation, AWS CDK และ tradeoff ระหว่าง tools