Infrastructure as Code (IaC)とは、サーバー、ネットワーク、データベースなどのインフラストラクチャを、手動セットアップではなくコード/設定ファイルを通じて定義・管理することです。CloudFormation、Terraform、CDKなどのツールにより、インフラストラクチャは繰り返し可能で、バージョン管理され、自動化されるようになります。
IaCが解決する問題
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.
