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.
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.
Atlantis could then detect it and destroy the project using the directory from the target branch?
I like @Symbianx 's suggestion and it seems if implemented as per that suggestion would address the concern @nwsparks has?
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.
Most helpful comment
I think it would be more user friendly creating the PR with the deletion of the directory.
Atlantis could then detect it and destroy the project using the directory from the target branch?