Open nicarnold-toast opened 1 year ago
Hello @nicarnold-toast, thanks for reaching out. That is correct, if no repoConfigFile is found Atlantis will try to autodetect Terraform modules that are modified in the PR.
You are asking for a way to disable this behavior?
Hey @GenPage . Thanks for getting back to me. I think your suggestion around disabling this might be the better option in this case (as it appears this is already an established pattern).
Would you like me to follow up with a PR in this case?
Many thanks, Nic
Hello Nic, yes PRs are welcome
A pr for this has already been created and is awaiting review. Please comment and add feedback when time permits
Community Note
Overview of the Issue
When specifying a
repo_config_file
override, I would expect if the file does not exist, that the plan would just be skipped over. This does not happen. Atlantis attempts to plan the project despite there being no repo config. It seems to use the default config (atlantis.yaml)Reproduction Steps
Setup webhook to an atlantis server.
Push to repo without the
atlantis-nonproduction.yaml
Logs
Logs
``` found no atlantis-nonproduction.yaml file ``` looks like it originates from here: https://github.com/runatlantis/atlantis/blob/main/server/events/project_command_builder.go#L392Environment details
e0ea4a5f3fa6
<- docker shaAtlantis server-side config file:
Repo
atlantis.yaml
file:Additional Context