#atlantis - March 2019

atlantisArchived
12 messages

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

Evgeny Pestov
Evgeny Pestovover 7 years ago
Greetings! I'm evaluating Atlantis and there are few things I've stumbled upon.. One of which is what is the Atlantis flow for re-creating things? Let's say I've lost a bunch of resources due to some disastrous event. Locally I can just run 'terraform plan, apply' and get most of the things re-created. But with Atlantis there are no changes to create a PR with. The same if I want to re-create something: I can do 'terraform destroy, apply' locally, but we want all our actions to be run through our gitops flow... Thanks for help!
nutellinoit
nutellinoitover 7 years ago
You can create a PR , then launch atlantis plan
nutellinoit
nutellinoitover 7 years ago
wait for plan to be ready
nutellinoit
nutellinoitover 7 years ago
and then atlantis apply
nutellinoit
nutellinoitover 7 years ago
atlantis plan -p projectname
mpmsimo
mpmsimoover 7 years ago
Any modification to a .tf file should work, if no changes are recognized (i.e. whitespace)
Evgeny Pestov
Evgeny Pestovover 7 years ago
@nutellinoit Thanks! That's an option indeed. Does Atlantis destroy removed 'projects' or one need to create a PR with an empty tf folder for that?
joshmyers
joshmyersover 7 years ago
Atlantis literally runs what Terraform would.
Shane
Shaneover 7 years ago
@Evgeny Pestov it will not detect it as you are removing it and it will see nothing exists. So you have to destroy it yourself or leave a empty tf file with no resources.
Evgeny Pestov
Evgeny Pestovover 7 years ago

atlantis plan -- -destroy doesn't seem to work with terragrunt :-(


which is our wrapper of choice... But I've found another workaround proposed for terragrunt use case in one of the issues: using an empty/dummy module
Evgeny Pestov
Evgeny Pestovover 7 years ago
One more question: how do you test modules and/or infrastructure with Atlanis? I would like to have a flow like: create MR -> atlantis plan -> review -> atlantis apply -> run tests with the CI tool of choice, which is GitLab in our case. Atlantis updates the commit status in gitlab, but I could not find a way to hook Gitlab CI jobs to the status... Which is probably a GitLab limitation...