remote state backendとは?
remote state backendは、インフラのstate fileを単一のマシン上ではなく、object storageやmanaged backendといった共有サービスに保持します。stateを一元化することで、複数のオペレータとCI runnerが同じ記録を読み書きできます。backendは通常lockingとバージョン管理を追加し、並行する実行が安全に復旧可能な状態を保ちます。
なぜ重要か
1台のラップトップ上のローカルstateはチームや自動化されたpipelineを支えられず、簡単に失われます。リモートbackendはstateを耐久性があり、共有可能で、lock可能にし、これはCI駆動のインフラの前提条件です。
関連ガイド
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 an IaC Workspace?An infrastructure-as-code workspace is a named, isolated instance of state that lets the same configuration m…
What Is the Plan and Apply Cycle?The plan and apply cycle is the infrastructure-as-code workflow of computing a proposed change set, reviewing…