-
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
deleting resources via Atlantis #563
Comments
I realized that I can do this via atlantis plan -- -destroy from finding a closed issue. Can this be please be added to the documentation (If it is, more clearly?)? |
Also, is there a way for atlantis to destroy a specific resource within a .tf file? Like:
|
If the resource is in Terraform, then delete it from your config file and push a PR and the plan will contain the deletion of that resource.
There is no way to run the destroy command you show above (that I know of) other than to delete it from your code. |
Thanks for your reply on this. Realizing that this was an issue with me not configuring a remote state file previously |
Ahh, yeah sorry about that. I need to implement #435 |
I'll close this then unless you have more questions. |
just add documentation please that people need to configure a remote state |
This is already documented: https://www.runatlantis.io/docs/requirements.html#terraform-state But a warning in the actual comments would be more effective. |
Sorry old comment but what about commenting out your TF resources and submitting that as a PR, or renaming the |
that is the same thing as deleting the resource from the file and pushing forward. I personally prefer :
some people argue that |
can we run the target flag in Atlantis to destroy specific resources? atlantis plan -- -destroy -target RESOURCE_TYPE.NAME -target RESOURCE_TYPE2.NAME |
Yes that's possible. Please see #3288. |
How are people using Atlantis to remove resources? say I deploy resources via Atlantis into my cloud provider, and I now want to manage the full life cycle of that resource. Do I run an Atlantis destroy (Terraform destroy) through a PR to specify that specific item as well? I need to have a better understanding of how people are handling that.
The text was updated successfully, but these errors were encountered: