|Discuss the Atlantis (<http://runatlantis.io||runatlantis.io>)|
**Archive: ** https://archive.sweetops.com/atlantis/
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!
You can create a PR , then launch atlantis plan
wait for plan to be ready
and then atlantis apply
atlantis plan -p projectname
Any modification to a
.tf file should work, if no changes are recognized (i.e. whitespace)
@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?
Atlantis literally runs what Terraform would.
@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.
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
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…