#atlantis (2019-11)

atlantis

Discuss the Atlantis (http://runatlantis.io|runatlantis.io) *Archive: * https://archive.sweetops.com/atlantis/

2019-11-11

zeid.derhally avatar
zeid.derhally

When deploying an atlantis instance per environment, what is the recommended approach for configuring each instance to only handle its own environment. We have dev, qa, stable, prod, and want each atlantis to plan/apply for its corresponding environment

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

We deploy Atlantis in each AWS account for this purpose

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

And we have a 1:1 correlation between AWS accounts and Atlantis

zeid.derhally avatar
zeid.derhally

we are doing that as well

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

So webhooks only fire for that repo

zeid.derhally avatar
zeid.derhally

oh, you have a repo per env?

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

So would this work for you?

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

Ya but technically not required as the Atlantis config can filter based on paths

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

But it will wake up on every branch sync regardless of environment

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

Which is what’s nice about keeping accounts isolated by repo

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

Commit history is then isolated as well - if that’s appealing

zeid.derhally avatar
zeid.derhally

it is

zeid.derhally avatar
zeid.derhally

thanks

    keyboard_arrow_up