-
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
Ability to ignore terraform files and folders from atlantis run #50
Comments
I like the option with .atlantisignore files very much, would be very helpful when working with terraform modules and having templates in a separate directory. |
yea for sure. Currently, atlantis ignores certain folders ex: |
So it seems like the fix in this ticket aws to rename your module folder to "_modules" or "modules" which would ignore them. However it looks like #211 changed this behavior.... Any chance you guys could re-evaluate the .atlantisignore suggestion ? |
@johntdyer is the issue you're having that Atlantis is running Does that change fix your issue or is there something else happening? Regarding .atlantisignore, here's the direction I want to go:
version: 2
pipelines:
plan:
on_push:
enabled: true
when_modified: ["*.tf", "../../modules/**/*.tf"] # If a modified file matches then we'll run plan in this project. Uses .gitignore syntax. It's optional, if not specified then will default to ["*.tf", "**/*.tfvars"]. So long-story short, you could use the |
Thanks for the update. So, yes this would work. Thanks for the update. Any idea on when we can expect this new behavior ? |
The new behaviour is being worked on right now but I can't give you an accurate ETA. There's a lot of features being considered for the next release: https://docs.google.com/document/d/13if7Bma_uTF1nhvdKx-vpU5ASakmPt-EfPSo3epv7JQ/edit# Can you elaborate on why having the ability to run |
Right now when I run Ran Plan in 2 directories:
_/Plan Error
sns_to_spark_lambda/Plan Error
|
Ahh sorry, you need to pull the latest release from here: https://github.com/runatlantis/atlantis |
This issue was migrated to runatlantis/atlantis#26. Read about why here. |
Currently, atlantis ignores certain folders such as
_modules/
andmodules/
but we want to extend this to ignore any folder that has.atlantisignore
file or something along those lines. https://github.com/hootsuite/atlantis/blob/master/server/plan_executor.go#L196The text was updated successfully, but these errors were encountered: