-
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
Several Atlantis servers #1452
Comments
you can filter per dir in the repo side using a regex but since is the same repo the 3 servers will respond to any comment command you send so if you trigger a valid run for dev the other 2 atlantis servers will say, no valid workspace or another type of error and they will comment back I have been working on an implementation for this here https://github.com/runatlantis/atlantis/tree/multiserver but it is far from finished. |
if you can deal with error comments you can try maybe using a script to filter out the comments. |
Which option do you mean? Could you name it? |
sorry , the server side config does not allow for a regex for directory, only per repo. |
Another option would be to use pre workflow hook. And generate your |
@ipeacocks you can also see #1345 |
@ipeacocks Check out #1469. We use this flag to make Atlantis ignore the PR if there are no defined projects that match the modified files in the PR. |
one solution here |
I have 1 git repo and 3 different infrastructures in it (different AWS accounts), each env in separate directory.
Some resources in e.g.
dev
can be applied in dev network only (so atlantis instance needs to be in this network). The same logic for prod env and so on.So I've thought to install 3 atlantis servers in dev, rc, prod, then connect it with the same git repo and each PR should spawn 3 hooks to each atlantis. On each change should answer only correct atlantis: for dev code changes - dev atlantis, for prod - prod one and so on.
I see that
atlantis.yaml
hasdir
option. Doesrepo.yaml
have some equivalent? Hope I was clear.The text was updated successfully, but these errors were encountered: