Shutting an EC2 instance down locally (on the instance)?

view full story

http://serverfault.com – The goal is for an EC2 instance to shut itself down. All my instances are Ubuntu 10.10. I used to be able to execute the command "sudo poweroff -n -f" and the instance would shut down. However, now the instances stop responding and peg their CPUs at 50%. I've tried every possible combination of shutdown/halt/poweroff and they all either: Do nothing, leaving the instance still running Put the instance into this halted/buys but still "on" state Thanks! (HowTos)