idempotentなapplyとは?
idempotentなapplyは、その結果が実行回数ではなく望ましい状態のみに依存するインフラ操作です。ライブ環境がすでに設定と一致していれば、再実行は変更を行わずno-opを報告します。この性質こそが、宣言的インフラを繰り返し安全にapplyできるものにします。
なぜ重要か
idempotencyにより、CIは一時的な失敗の後にapplyを再実行しても、リソースを重複させたり破損させたりする恐れがありません。きれいなno-opは、世界がまだコードと一致しているという有用なdriftチェックにもなります。
関連ガイド
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…
What Is Infrastructure Drift?Infrastructure drift is divergence between the real state of cloud resources and the state declared in infras…
What Is a Reconciliation Loop?A reconciliation loop is the continuous control process that observes actual state, compares it to desired st…