This feature would enable users to SIGKILL a running apply. This could be added to the apply output page described in https://github.com/runatlantis/atlantis/issues/185 or via a comment.
Ya this is crucial to be able to stop something (such as destroying resources) if an issue was not caught during the plan/review phase.
On a similar note, it'd be nice to be able to cancel a running plan. For example, sometimes the automatic plan of a large amount of resources kicks off, but we really want to do a plan with a -target flag.
@bljordan #305 is also related to what your asking for.
What would happen today if I clicked "discard plan & unlock" in the web UI while running an apply job?
What would happen today if I clicked "discard plan & unlock" in the web UI while running an apply job?
I'm not 100% sure but I know it wouldn't kill the running tf process. It should fail because there's locks on the directories when they're in use but I haven't tested it.
What would happen today if I clicked "discard plan & unlock" in the web UI while running an apply job?
I'm not 100% sure but I know it wouldn't kill the running tf process. It should fail because there's locks on the directories when they're in use but I haven't tested it.
I just did that.. and it seems like the "unlock" works and the plan is discarded.
But it is not possible to run a new plan due to "workspace currently locked" (by the apply I assume)
Most helpful comment
Ya this is crucial to be able to stop something (such as destroying resources) if an issue was not caught during the plan/review phase.