IaC workspaceとは?
infrastructure-as-code workspaceは、1つの設定の下にある別々のstateコンテキストであり、同じコードがdevやstagingのような異なる環境を管理できます。各workspaceは自身のリソースを独立して追跡し、ある環境が別の環境を上書きするのを防ぎます。workspaceを切り替えると、後続のコマンドがどのstateに対して動作するかが選択されます。
なぜ重要か
1つの設定を環境間で再利用することで、ほぼ同一のセットアップ間でのcopy-pasteによるdriftを回避します。workspaceの隔離は、各環境のstateが他と衝突するのを防ぎます。
関連ガイド
What Is a Remote State Backend?A remote state backend stores infrastructure-as-code state in a shared, durable location so teams and CI runn…
What Is State File Locking?State file locking prevents two infrastructure-as-code runs from modifying the same state at once, avoiding c…
What Is a Module Registry?A module registry is a versioned catalog of reusable infrastructure-as-code modules that teams can publish, d…