I want to schedule a (AWS) linux machine to start, run a program, and then shut itself down (to keep costs at a minimum). I can put
mycommand; shutdown
in the /etc/rc.local file. But then I can't get into the machine if I ever need to make a change. Do I create another instance and attach the first machine's EBS storage whenever I need to change it? Or is there a better way to handle this?