Question

I would like to start a job on Compute engine instance, turn off my laptop and have the instance automatically deleted once the remote job is complete (without my laptop running)

Currently I have a script which runs on my laptop which has a delete instance command in the end. But I wish to turn off my laptop, since the remote job can even run for >24hours.

Is it possible to do this? Maybe I can poweroff or delete the instance at the end of the remote job FROM the remote instance itself?

Was it helpful?

Solution

Your assumption is correct you just need to trigger the shutdown command from within your GCE instance when the script has finished and not calling it from your laptop

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top