Infrastructure as Code (IaC) nghĩa là định nghĩa và quản lý hạ tầng của bạn (máy chủ, mạng, cơ sở dữ liệu) thông qua các tệp code/cấu hình thay vì thiết lập thủ công. Các công cụ như CloudFormation, Terraform và CDK làm cho hạ tầng có thể lặp lại, version-controlled và tự động hóa.
Vấn đề mà IaC giải quyết
MANUALLY setting up infrastructure (clicking in the Console) is:
→ not REPEATABLE (hard to recreate identically; error-prone)
→ not VERSIONED (no history of what changed, by whom, why)
→ not DOCUMENTED (the setup lives only in someone's memory/clicks)
→ hard to review, share, or roll back
→ IaC defines infrastructure in CODE → solving all of this.
