-
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
[Feature request] Allow planning multiple dirs at once #1299
Comments
Related: #1288 (comment) |
FWIW I've been able to make this work with multiple comments. Each comment calls out a different directory with it's own state/backend. You just have to make sure that you don't create the comments too soon after the previous comment, I wait about 3-5 seconds between comments. This will result in multiple plans being generated at the same time. It's a little tedious and causes comment spam for anyone following the PR but it works. |
you can do this at the project level.
if you have a project per dir ( autogenerated atlantis.yaml) you can plan
using regex.
https://www.runatlantis.io/docs/server-configuration.html#enable-regexp-cmd
…On Wed, Nov 30, 2022 at 9:49 AM corradomatt ***@***.***> wrote:
FWIW I've been able to make this work with multiple comments. Each comment
calls out a different directory with it's own state/backend. You just have
to make sure that you don't create the comments too soon after the previous
comment, I wait about 3-5 seconds between comments. This will result in
multiple plans being generated at the same time. It's a little tedious and
causes comment spam for anyone following the PR but it works.
—
Reply to this email directly, view it on GitHub
<#1299 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAQ3ERAKDGW64TGJPEKCHBLWK6HQ5ANCNFSM4URAIGIQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Having this feature will be super helpful! |
@ShradhaKhard you can do this now, set atlantis plan -p .*(dev|prod).* |
Bumping on this a couple of years later as I don't think it's a duplicate of #686 or #2757 The issue refers to the ability to write a a comment of the form I believe this serves a different purpose than the |
I agree with @laertis, the directories may not follow a wildcard-compatible naming scheme. either multiple I often have to make changes in a legacy TF repo at work. There are hundreds of state files managed in this repo. Often I will have to create 8+ different @nitrocode Can we consider re-opening this feature request? Being able to run a plan on multiple directories at once would make such a huge impact for legacy TF repos like the one I refer to above. |
It would be really helpful if you could do e.g.
atlantis plan -d terraform/prod -d terraform/staging
to plan multiple directories at the same time.This assumes the scenario in which each dir has its own backend/state, so theres no reason why both couldn't be planned in parallel.
Thanks!
The text was updated successfully, but these errors were encountered: