I use the PHP AWSSDK and cannot stop an instance.
I can get a list of the instances and parse the data. This instance is in the list, but when I try to stop it I get "The instance ID xxxx does not exist. It is a win2008 server.
TIA
Discovered I needed to set the the region host name if the server is not in the default zone.
$ec2->set_hostname($info->region_endpoint);
Then starting/stopping worked without errors $instanceAction = $ec2->stop_instances($instanceId) ;