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

[Feature Request] Atlantis ignore project option #1288

Closed
tomasbackman opened this issue Dec 4, 2020 · 5 comments
Closed

[Feature Request] Atlantis ignore project option #1288

tomasbackman opened this issue Dec 4, 2020 · 5 comments
Labels
feature New functionality/enhancement go Pull requests that update Go code help wanted Good feature for contributors

Comments

@tomasbackman
Copy link

Currently it is possible to run atlantis plan/apply for doing on all projects in PR or atlantis plan/apply -p for running just on one specific project.

But from time to time it happens that out of 10 projects I want to apply on all but 1.. then I have to write 9 atlantis apply -p xxx instead of just one atlantis apply -i xxx

@acastle
Copy link
Contributor

acastle commented Dec 5, 2020

Thank you for the suggestion @tomasbackman ! This seems like a perfectly reasonable feature to include.

@acastle acastle added feature New functionality/enhancement go Pull requests that update Go code help wanted Good feature for contributors labels Dec 5, 2020
@mwarkentin
Copy link
Contributor

This is a bit of scope creep (maybe a different issue) but it could be nice to support wildcards as well for -I / -p.

Would let you do something like "atlantis apply -I prod-*"

Or similarly being able to "atlantis apply -p staging-*".

If wildcards aren't supported, allowing multiple values to be passed could support similar functionality (though more verbose).

@dsolsona
Copy link

dsolsona commented Aug 9, 2021

I have a similar use case, I would like to be able to do an atlantis plan on all projects that have certain label or tag defined in atlantis.yaml

For example

projects:
- name: my-dir-1
  dir: dir-1/
  tags:
  - common-tag
  - b
  - c
- name: my-dir-2
  dir: dir-2/
  tags:
  - common-tag
  - b
  - c
- name: my-dir-3
  dir: dir-3/
  tags:
  - d

Then you could do something like atlantis plan -t common-tag and that would run a plan in all projects that have the common-tag

@tomasbackman
Copy link
Author

I have been (and still am) away from the terraform/atlantis, and almost even github world since I started my new gig in early 2021.. so haven't looked any at this, but the addition of wildcards by @bewie probably fulfils the need/use case that I created this issue from, as well as providing even more flexibility. (So helping @mwarkentin, but not @dsolsona )
Closing it now. Anyone is welcome to reopen or create new issues if needed!=)

@mwos-sl
Copy link

mwos-sl commented Feb 14, 2024

Not sure if I understood correctly - but was it actually implemented and released? I mean the ability to specify multiple projects to apply explicitely (without regexp, just a full name) AND/OR to ignore a chosen one?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New functionality/enhancement go Pull requests that update Go code help wanted Good feature for contributors
Projects
None yet
Development

No branches or pull requests

5 participants