infrastructure driftとは?
infrastructure driftは、ライブなリソースがinfrastructure-as-codeの宣言と異なるときに生じるギャップです。通常、手動のコンソール編集、自動化されたミューテーション、または失敗した部分的なapplyの後に現れます。driftはコードが真実の源であるという前提を損ない、後で驚くようなplanのdiffを引き起こすことがあります。
なぜ重要か
検出されないdriftはデプロイを予測不能にします。次のapplyが手動の修正を元に戻したり衝突したりする可能性があるためです。実際の状態をコードと定期的に比較することで、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 State File Locking?State file locking prevents two infrastructure-as-code runs from modifying the same state at once, avoiding c…
What Is an Idempotent Apply?An idempotent apply produces the same final state no matter how many times it runs, making no changes when re…