Plan/Apply (Terraform) - CI/CD用語集の定義
Terraformでは、planは希望する状態に到達するために必要な変更のプレビューを生成し、applyはそのplanを実際のインフラに対して実行します。
Terraformでは、planは希望する状態に到達するために必要な変更のプレビューを生成し、applyはそのplanを実際のインフラに対して実行します。
Terraformでは、planは希望する状態に到達するために必要な変更のプレビューを生成し、applyはそのplanを実際のインフラに対して実行します。
pipelineのパターン
レビューのためにpull requestで terraform plan -out=tfplan を実行し、mergeで terraform apply tfplan を実行することで、適用される変更がレビュー済みのplanとまったく同じになるようにします。
関連ガイド
Drift Detection - CI/CD Glossary DefinitionDrift Detection: Drift detection compares the real state of infrastructure against the declared configuration…
State Locking - CI/CD Glossary DefinitionState Locking: State locking prevents concurrent operations from writing to the same infrastructure state fil…
Remote Backend - CI/CD Glossary DefinitionRemote Backend: A remote backend stores Terraform state in a shared remote location (such as S3, GCS, or Terr…