-
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
Support atlantis destroy
subcommand
#941
Comments
I will say, the removal part of atlantis, is the most cumbersome part of our workflow. We have things, that can only run from atlantis, so we endup having to create a BS pull request, something like adding a comment to a .tf file, then doing the destroy, then deleting the folders, pushing again, and finally merging. |
@jseiser That has been what my team and I have been doing too. |
Having this as an available option would be fairly concerning. If this was to be implemented I think you would also surely need to implement the ability to blacklist commands on the server side for people who did not want to expose this. It should probably also be defaulted to the blacklist and only available if you explicitly allow it. |
I think it would be more user friendly creating the PR with the deletion of the directory. |
That does seem like a good workflow since you're gonna want to delete the directory anyway. Might be a bit tricky to implement though. |
That would be a lovely workflow. We currently plan destroy and apply outside of atlantis, then make the PR. |
We at our company are currently also struggling with this problem and came to the same conclusion that it would be best for Atlantis to detect deleted folders and run a Would you be open for a contribution to implement the destroy workflow? If so we would draft a suggestion. |
This is a related issue here #193 And this is the workaround is here #193 (comment) tldr here are the options
|
I do not believe this will be supported via Closing for now unless the workarounds do not work for people. |
Project is community driven at this point so some of you will have to create a PR to get this feature. |
Do we have some high-level design/acceptance criteria for this issue? I want to take a stab at implementing this. |
One thing to note is if you plan to use |
Wondering if a command
atlantis destroy -d <dir>
will be useful.It will:
atlantis destroy -d <dir>
<dir>
and show it on the MRatlantis apply
<dir>
deleted and merges the MRNumber 6, might be a little uncomfortable for some people.
The text was updated successfully, but these errors were encountered: