You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have a set of terraform plans that on completion creates config files which are then commited via workflow steps.
The issue we have is that we use autoplan and automerge. Upon the commit atlantis re-runs the plan even though no .tf files have been edited. Our created files are only .yml. This commit and autoplan blocks the automerge from completing.
Atlantis should not be triggering a plan, no *.tf files were modified. The files are also outside of the project folder ./project/config.
Explicitly ignoring .yml does not prevent the plan. It seems that after an initial commit requiring a plan to be triggered will then trigger a new plan upon any file change. It is ignoring the filter.
To work around this we have to disable auto plan.
The text was updated successfully, but these errors were encountered:
Hello, @timvia! I'm here to help you with any bugs, questions, or contributions you have. Let's tackle this together!
I found a similar closed issue titled "Atlantis fails on PR that contains no TF changes," but no solution was found in the comments [1].
To address your issue, ensure that your atlantis.yaml configuration is correctly set to prevent autoplan from triggering on non-.tf file changes. It seems like your current configuration should work, as it specifies when_modified: ["*.tf"]. However, if Atlantis is still triggering plans on .yml file changes, you might want to verify that there are no other configurations or defaults causing this behavior.
Additionally, ensure that the when_modified field is correctly scoped to the project directory and that no other global settings are overriding it. If the problem persists, consider explicitly specifying the directories or file patterns that should trigger autoplan, ensuring that .yml files are not included unless necessary.
If these steps do not resolve the issue, you might need to explore further configuration options or potential updates in newer versions of Atlantis that address this behavior.
Overview of the Issue
We have a set of terraform plans that on completion creates config files which are then commited via workflow steps.
The issue we have is that we use autoplan and automerge. Upon the commit atlantis re-runs the plan even though no .tf files have been edited. Our created files are only .yml. This commit and autoplan blocks the automerge from completing.
Atlantis version v0.32.0
Example atlantis.yaml
Describe the solution you'd like
Atlantis should not be triggering a plan, no *.tf files were modified. The files are also outside of the project folder ./project/config.
Explicitly ignoring .yml does not prevent the plan. It seems that after an initial commit requiring a plan to be triggered will then trigger a new plan upon any file change. It is ignoring the filter.
To work around this we have to disable auto plan.
The text was updated successfully, but these errors were encountered: