-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Allow supplying wildcard for dir #686
Comments
I have a project with 60+ subfolder. It will be helpful for me if we have this feature. |
Hello! We also looking a way to not duplicate the whole definition for every sub-folder. |
Hi, has this feature added in atlantis? |
Hi guys. Any news here? This option would be really useful if you have lot of subfolders. I found terragrunt-atlantis-config tool to automatically generate atlantis.yaml based on current git repo but it's not enough flexible when you have different workflow's for different sub folders. |
@mjagielka Just a heads up, |
Atlantis is applying commands in the path where
For me i can see |
@wmariuss our use case is similar, and this is a common pattern if folks follow the terragrunt model. It is odd that without the repo-level In our use case, we have a need to disable auto-planning but cannot because if we do, we would then have to define every directory and sub-directory since auto-plan disabling is a repo-level config. I understand that
|
@djenriquez feel free to move this discussion over to https://github.com/transcend-io/terragrunt-atlantis-config if you'd like to keep this Issue on topic 😄. But the short answer is that I think it is possible to use different versions of terragrunt: For each version of terragrunt you use, you could define a custom atlantis workflow, and then on each terragrunt module add a |
Hi @dmattia! Will it be possible to share an example of how to specify workflow name in the locals. Is it something like below.
|
Hey @yasra002
|
Thanks. I managed to make it work. I did not want to add workflows to atlantis.yaml so instead, I added those to Server side repo config. |
is this still an issue with |
@jamengual: Yes the issue still persists.
still does not work |
I do not think this is even a feature |
This issue is requesting the feature be added. Would really simplify the configuration if we can use this approach. |
Hi, will this feature going to be added in Atlantis? |
Please add this feature |
There are a couple prs that have tried to tackle this and did not know there is a wildcard regex for projects via Here are the prs
|
@nitrocode I believe we have 2 different things:
The first should add more control from the admin side while the latter should add more control from the client side. Looking at this code: atlantis/server/core/config/raw/project.go Lines 81 to 126 in c800f70
Seems to me that if we change this function to return multiple projects based on the regex received in the
This would work like an expansion of projects internally based on the received regex. The downside is that the internally mapped RepoCfg struct would be different from the repo config file. Another option to accept a regex in the repo config would be to change all functions that uses the I might give a try to add regex support on the |
I think this would be difficult to manage code wise and configuration wise.
I'd prefer this for now. We can be explicit about our directories in atlantis.yaml and then use regex to do plans from the PR. I think this gives us the best of both worlds. cc: @runatlantis/maintainers for more thoughts on this |
we would like to have this feature otherwise there will be duplicated configs for multi dirs |
any progress on this issue? would love to use atlantis with our existing infra, but would need 500+ lines in a repo level config. |
If there aren't any linked PRs then most likely there isn't any progress on the issue. @rednap please feel free to contribute the change. All contributors are welcome. |
One easy way of implementing this would be to default an autodiscovered (so not explicitly defined) project's cc: @jskrill @runatlantis/core-contributors @runatlantis/maintainers |
wildcards/regex on dir makes sense |
hope this feature will be there soon |
We define our terraform code in what we call stacks. Each stack defines multiple environments where each directory off root is the environment.
Currently we have to add a project for each directory. Would be nice if you could specify a wildcard for the dir name in the project and just have Atlantis run a plan for each directory that matches that pattern.
The text was updated successfully, but these errors were encountered: