You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request. Searching for pre-existing feature requests helps us consolidate datapoints for identical requirements into a single place, thank you!
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.
If you are interested in working on this issue or have submitted a pull request, please leave a comment.
This is not recommended because now you are allowing users to bypass the rules added by admins of the repo and go about planning another project outside of the scope of the PR. If you need to plan another project then create another PR.
jamengual
added
the
wont-do
Unfortunately due to scope or project direction we won't build this in a reasonable amount of time
label
Feb 19, 2024
In our case, the atlantis.yaml file is modified on a per-repo basis (because of this limitation / way of repo matchers work on the server-side config currently: #4245), so it's not really about "overriding rules added by admins". Also, in our case, planning for multiple projects is within the scope of the PR (even if the PR is about merging into a particular env branch), coz we would like to run a plan if more than one projects are affected. For example, we have a setup in which a change in dev, could potentially affect qa (assuming that both configs use the same main.tf and the change is there). Do you think it's still not recommended based on this?
EDIT: I've gone around this, using the when_modified option, and completely abandoned the branch one.
EDIT 2: Including a custom run step for apply in my custom project workflow, I've achieved the functionality that I wanted:
qa:
plan:
...
apply:
steps:
- run: |
if [ "$BASE_BRANCH_NAME" = "qa" ]; then
echo "we are on qa branch, thus proceeding with the apply!"
terraform${ATLANTIS_TERRAFORM_VERSION} apply "$PLANFILE"
else
echo "we are not on qa branch, thus canceling the apply"
fi
when_modify is a good use for this.
I will say that you should do a Dev change and then create a PR for QA apply , prod etc, but this is a "how do we work as a company in our VCS problem" not much of how atlantis does things.
Community Note
Describe the user story
I'd like to have what is mentioned here: #254 (comment)
Basically some sort of a flag that allows the following workflow:
-p
flagDescribe the solution you'd like
some sort of a server config flag
Describe the drawbacks of your solution
Describe alternatives you've considered
atlantis plan
for all defined projects regardless of files changed #254 (comment)The text was updated successfully, but these errors were encountered: