#atlantis (2019-03)
Discuss the Atlantis (<http://runatlantis.io | runatlantis.io>) |
**Archive: ** https://archive.sweetops.com/atlantis/
2019-03-07
![Evgeny Pestov avatar](https://secure.gravatar.com/avatar/d0b06957f0614ff5cea930e198f288e1.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0004-72.png)
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 avatar](https://avatars.slack-edge.com/2018-11-26/487007455216_a140ee997507b177e7a5_72.jpg)
You can create a PR , then launch atlantis plan
![nutellinoit avatar](https://avatars.slack-edge.com/2018-11-26/487007455216_a140ee997507b177e7a5_72.jpg)
wait for plan to be ready
![nutellinoit avatar](https://avatars.slack-edge.com/2018-11-26/487007455216_a140ee997507b177e7a5_72.jpg)
and then atlantis apply
![nutellinoit avatar](https://avatars.slack-edge.com/2018-11-26/487007455216_a140ee997507b177e7a5_72.jpg)
atlantis plan -p projectname
![mpmsimo avatar](https://secure.gravatar.com/avatar/906f51ae1f8abaf42956741690b5d174.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0003-72.png)
Any modification to a .tf
file should work, if no changes are recognized (i.e. whitespace)
2019-03-08
![Evgeny Pestov avatar](https://secure.gravatar.com/avatar/d0b06957f0614ff5cea930e198f288e1.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0004-72.png)
@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 avatar](https://avatars.slack-edge.com/2018-11-20/483958217281_8117d6f6c62807ce9912_72.jpg)
Atlantis literally runs what Terraform would.
2019-03-12
![Shane avatar](https://avatars.slack-edge.com/2018-11-16/481069875217_6fbbee537c0736f89e7f_72.png)
@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.
2019-03-13
![Evgeny Pestov avatar](https://secure.gravatar.com/avatar/d0b06957f0614ff5cea930e198f288e1.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0004-72.png)
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 avatar](https://secure.gravatar.com/avatar/d0b06957f0614ff5cea930e198f288e1.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0004-72.png)
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…