Plan stale when applying PR that only changes the lock file #1529
-
QuestionWe have a PR where we moved terraform files to a different folder. tfaction updated the lock file in the PR and plan was successful ("No changes"). After merging apply failed and said the plan is stale. It created a followup PR that we can merge and nothing fails. Does anyone have an idea what might beging wrong here? There was no PR merged inbetween. Background of the questionNo response Example CodeNo response NoteNo response |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
tfaction stores the plan file at GitHub Artifacts and uses it when running https://suzuki-shunsuke.github.io/tfaction/docs/feature/plan-file tfaction/terraform-apply/download_plan_file.sh Lines 1 to 26 in 9d8c235 I think your failure means the plan file is stale, but basically tfaction updates plan files if necessary, so this issue won't occur. https://suzuki-shunsuke.github.io/tfaction/docs/feature/auto-update-related-prs If you merged pull requests regarding the same working directory at the same time,
|
Beta Was this translation helpful? Give feedback.
the lock file
means .terraform.lock.hcl, right?tfaction stores the plan file at GitHub Artifacts and uses it when running
terraform apply
.https://suzuki-shunsuke.github.io/tfaction/docs/feature/plan-file
tfaction/terraform-apply/download_plan_file.sh
Lines 1 to 26 in 9d8c235