Skip to content
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

atlantis apply -w * #90

Closed
lkysow opened this issue Mar 28, 2018 · 4 comments
Closed

atlantis apply -w * #90

lkysow opened this issue Mar 28, 2018 · 4 comments

Comments

@lkysow
Copy link
Member

lkysow commented Mar 28, 2018

Enable users to apply all outstanding plans with a command something like atlantis apply -w * -d *. Exact command to be determined.

When auto plan is implemented, the need for an atlantis plan -w * would be less likely. This is also harder to implement since we need to figure out what your workspaces and dirs are.

@rr0hit
Copy link

rr0hit commented May 28, 2018

@lkysow A quick related question, shouldn't atlantis have a mechanism to enforce that a PR is applied to all workspaces (or a set of workspaces provided as options to the atlantis server) before they are unlocked for further changes?

@lkysow
Copy link
Member Author

lkysow commented May 30, 2018

@rr0hit locks are per workspace/directory right now. So if I have

dir1/
  main.tf
dir2/
  main.tf

And I run atlantis plan -d dir1, then atlantis plan -d dir2 and finally atlantis apply -d dir1 then there is still a lock on dir2.

But are you asking for a mechanism that ensures that a PR has a plan generated for all applicable workspaces?

@lkysow
Copy link
Member Author

lkysow commented Jul 11, 2018

This will be fixed by #169. When that's done, running atlantis apply will apply all unapplied plans.

@lkysow lkysow closed this as completed Jul 11, 2018
@lkysow
Copy link
Member Author

lkysow commented Aug 13, 2018

In the latest release (0.4.5) if you run atlantis apply, Atlantis will apply all unapplied plans. Coupled with autoplanning, this means you can:

  • open a pull request
  • Atlantis will automatically plan all projects that were modified
  • comment atlantis apply and Atlantis will apply all the plans

meringu pushed a commit to meringu/atlantis that referenced this issue May 29, 2023
* bootstrap mode will now fork hootsuite/atlantis-example repo

* use hootsuite repo name for creating pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants