-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
File changes in modules are not detected #188
Comments
@ntietz yes, that is currently the expected behaviour. We ignore files/directories that have |
@anubhavmishra I'm not sure that I understand the rationale here for the expected behavior. Perhaps our use case is different or we are using Terraform differently from others. We have a number of modules we have defined ourselves, which we update fairly regularly as our infra needs evolve. How do Atlantis users typically deal with changes in a module, and having that change get reflected in the plan? Does a lot of content get stuffed into As mentioned before, the fix suggested in issue #144 (providing the ability to trigger a plan even if no change is detected) would work for us here. I imagine it would be something like "atlantis plan staging force". I'm willing to work on a contribution for that, if someone points me in the right direction. |
Hey @ntietz, For now what you can do is that you can change files in the project that uses the modules. So, for example a hack would be to just add a whitespace in the As I said earlier, we will support this use case soon! Also at Hootsuite we had modules that were hosted on git and were pulled in when needed by |
Our project is set up in one of the ways listed in the README. Basically, we have this structure:
When I make a change to
infra/modules/module1/main.tf
, the result ofatlantis plan staging
is always "Plan Failed: No Terraform files were modified."When I make a trivial change to
infra/main.tf
(added a comment to trick Atlantis into realizing there is a change), the plan works as expected.I can see two possible solutions:
The text was updated successfully, but these errors were encountered: