Coder.comC
Coder.com2y ago
45 replies
Conor

How does the coder_script terraform resource work?

I have a script that I need to run when the workspace has stopped/deleted to delete some resources from another k8s cluster.

I add it as a resource to the template and set “run_on_stop” to true and set the agent id to the one of the workspace but when I stop/delete a workspace it doesn’t run. Am I missing something in the setup?
Was this page helpful?